'Test that a Deferred which fails with a L{pb.Error} is treated in
the same way as a synchronously raised L{pb.Error}.'

def test_deferredJellyFailure(self):

    def failureDeferredJelly(fail):
        fail.trap(JellyError)
        self.assertNotIsInstance(fail.type, str)
        self.assertIsInstance(fail.value, fail.type)
        return 430
    return self._testImpl('deferredJelly', 430, failureDeferredJelly)
