commit 1cb15d01fa107467b811eca7e3ebd17f3a31ecf9 Author: Isis Lovecruft isis@torproject.org Date: Tue Aug 26 02:42:10 2014 +0000
Fix fingerprints in two tests for parseNetworkStatusFile(). --- lib/bridgedb/test/test_parse_descriptors.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/lib/bridgedb/test/test_parse_descriptors.py b/lib/bridgedb/test/test_parse_descriptors.py index 6076de0..fae6441 100644 --- a/lib/bridgedb/test/test_parse_descriptors.py +++ b/lib/bridgedb/test/test_parse_descriptors.py @@ -209,10 +209,9 @@ class ParseDescriptorsTests(unittest.TestCase): descFile = self.writeTestDescriptorsToFile('networkstatus-bridges', BRIDGE_NETWORKSTATUS_0) routers = descriptors.parseNetworkStatusFile(descFile) - bridge = routers.items()[0] - self.assertIsInstance(bridge, RouterStatusEntryV2) + fingerprint, bridge = routers.items()[0] self.assertEqual(bridge.address, u'152.78.9.20') - self.assertEqual(bridge.fingerprint, + self.assertEqual(fingerprint, u'6FA9216CF3A06E89A03121ACC31F70F8DFD7DDCC')
def test_parse_descriptors_parseBridgeNetworkStatusFile_2(self): @@ -225,10 +224,9 @@ class ParseDescriptorsTests(unittest.TestCase): BRIDGE_NETWORKSTATUS_0, BRIDGE_NETWORKSTATUS_1) routers = descriptors.parseNetworkStatusFile(descFile) - bridge = routers.items()[0] - self.assertIsInstance(bridge, RouterStatusEntryV2) + fingerprint, bridge = routers.items()[0] self.assertEqual(bridge.address, u'152.78.9.20') - self.assertEqual(bridge.fingerprint, + self.assertEqual(fingerprint, u'6FA9216CF3A06E89A03121ACC31F70F8DFD7DDCC')
def test_parse_descriptors_parseBridgeExtraInfoFiles_return_type(self):
tor-commits@lists.torproject.org