'Test that a Deferred which fails with a L{pb.Error} which is not
also a L{pb.Jellyable} is treated in the same way as a synchronously
raised exception of the same type.'

def test_deferredSecurity(self):

    def failureDeferredSecurity(fail):
        fail.trap(SecurityError)
        self.assertNotIsInstance(fail.type, str)
        self.assertIsInstance(fail.value, fail.type)
        return 43000
    return self._testImpl('deferredSecurity', 43000, failureDeferredSecurity)
