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)
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'))