Example #1
0
    def test_exception(self):
        x = remoting.get_fault({
            'level': 'error',
            'code': 'Server.Call.Failed'
        })

        self.assertRaises(remoting.RemotingCallFailed, x.raiseException)
Example #2
0
 def test_kwargs(self):
     x = remoting.get_fault({'foo': 'bar'})
Example #3
0
 def test_kwargs(self):
     x = remoting.get_fault({'foo': 'bar'})
Example #4
0
    def test_exception(self):
        x = remoting.get_fault({'level': 'error', 'code': 'Server.Call.Failed'})

        self.assertRaises(remoting.RemotingCallFailed, x.raiseException)
Example #5
0
    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)
Example #6
0
    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)
Example #7
0
 def test_kwargs(self):
     x = remoting.get_fault({"foo": "bar"})
Example #8
0
    def test_exception(self):
        x = remoting.get_fault({"level": "error", "code": "Server.Call.Failed"})

        self.assertRaises(remoting.RemotingCallFailed, x.raiseException)