Beispiel #1
0
 def test_remote(self):
     '''test_remote: calls on remote objects work'''
     print("About to create WrappedClass")
     o = WrappedClass(123.45)
     self.assertNotEqual(o.rpcid, None)
     try:
         self.assertEqual(o.retarg(), 123.45)
         o.setarg(dict(x=1, y=2))
         self.assertEqual(o.retarg(), dict(x=1, y=2))
     except RPCWrapper.MethodFailed as e:
         print('-------------------------')
         print(e.traceback)
         print('-------------------------')
         assert 0
Beispiel #2
0
 def test_remote(self):
     '''test_remote: calls on remote objects work'''
     print("About to create WrappedClass")
     o = WrappedClass(123.45)
     self.assertNotEqual(o.rpcid, None)
     try:
         self.assertEqual(o.retarg(), 123.45)
         o.setarg(dict(x=1, y=2))
         self.assertEqual(o.retarg(), dict(x=1, y=2))
     except RPCWrapper.MethodFailed as e:
         print('-------------------------')
         print(e.traceback)
         print('-------------------------')
         assert 0