commit 41f0f5c255740d777764fa7a336769c317b0cc26 Author: Isis Lovecruft isis@torproject.org Date: Tue Aug 26 03:57:35 2014 +0000
Fix faulty unittests which expected parsed extrainfos to have an `address`. --- lib/bridgedb/test/test_parse_descriptors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/bridgedb/test/test_parse_descriptors.py b/lib/bridgedb/test/test_parse_descriptors.py index 85863e4..2a1171e 100644 --- a/lib/bridgedb/test/test_parse_descriptors.py +++ b/lib/bridgedb/test/test_parse_descriptors.py @@ -253,7 +253,7 @@ class ParseDescriptorsTests(unittest.TestCase): descFile = io.BytesIO(BRIDGE_EXTRA_INFO_DESCRIPTOR) routers = descriptors.parseBridgeExtraInfoFiles(descFile) bridge = routers.values()[0] - self.assertEqual(bridge.address, u'152.78.9.20') + self.assertEqual(len(bridge.transport), 2) self.assertEqual(bridge.fingerprint, u'6FA9216CF3A06E89A03121ACC31F70F8DFD7DDCC')
@@ -266,6 +266,5 @@ class ParseDescriptorsTests(unittest.TestCase): descFileTwo = io.BytesIO(BRIDGE_EXTRA_INFO_DESCRIPTOR_NEWER_DUPLICATE) routers = descriptors.parseBridgeExtraInfoFiles(descFileOne, descFileTwo) bridge = routers.values()[0] - self.assertEqual(bridge.address, u'152.78.9.20') self.assertEqual(bridge.fingerprint, u'6FA9216CF3A06E89A03121ACC31F70F8DFD7DDCC')