class DummyAddressTest(TestCase): def setUp(self): self.address = DummyUnitAddress() def test_get_address(self): self.assertEqual((yield self.address.get_public_address()), "localhost") self.assertEqual((yield self.address.get_private_address()), "localhost")
class DummyAddressTest(TestCase): def setUp(self): self.address = DummyUnitAddress() def test_get_address(self): self.assertEqual( (yield self.address.get_public_address()), "localhost") self.assertEqual( (yield self.address.get_private_address()), "localhost")
def setUp(self): self.address = DummyUnitAddress()