Esempio n. 1
0
 def test_remote_class_with_real_server(self):
     PowFixture = remote_module(self.proxy).PowFixture
     pow_3 = PowFixture(3)
     nine = pow_3.pow(2)
     self.assertEqual(nine, 9)
Esempio n. 2
0
 def test_remote_class_with_real_server(self):
     PowFixture = remote_module(self.proxy).PowFixture
     pow_3 = PowFixture(3)
     nine = pow_3.pow(2)
     self.assertEqual(nine, 9)
Esempio n. 3
0
 def test_remote_module_has_defined_classes(self):
     rmodule = remote_module(self.proxy)
     self.assertTrue(hasattr(rmodule, 'PowFixture'))
     self.assertTrue(hasattr(rmodule, 'DivFixture'))
     self.assertFalse(hasattr(rmodule, 'NonExisting'))
Esempio n. 4
0
 def test_remote_module_has_defined_classes(self):
     rmodule = remote_module(self.proxy)
     self.assertTrue(hasattr(rmodule, 'PowFixture'))
     self.assertTrue(hasattr(rmodule, 'DivFixture'))
     self.assertFalse(hasattr(rmodule, 'NonExisting'))