示例#1
0
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")
示例#2
0
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")
示例#3
0
 def setUp(self):
     self.address = DummyUnitAddress()
示例#4
0
 def setUp(self):
     self.address = DummyUnitAddress()