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

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

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

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