def test_exception(self): x = remoting.get_fault({ 'level': 'error', 'code': 'Server.Call.Failed' }) self.assertRaises(remoting.RemotingCallFailed, x.raiseException)
def test_kwargs(self): x = remoting.get_fault({'foo': 'bar'})
def test_exception(self): x = remoting.get_fault({'level': 'error', 'code': 'Server.Call.Failed'}) self.assertRaises(remoting.RemotingCallFailed, x.raiseException)
def test_kwargs(self): # The fact that this doesn't throw an error means that this test passes x = remoting.get_fault({'foo': 'bar'}) self.assertIsInstance(x, remoting.ErrorFault)
def test_kwargs(self): x = remoting.get_fault({"foo": "bar"})
def test_exception(self): x = remoting.get_fault({"level": "error", "code": "Server.Call.Failed"}) self.assertRaises(remoting.RemotingCallFailed, x.raiseException)