commit fbb47f14a6b9e7853b11619bea9239959d570331 Author: Isis Lovecruft isis@torproject.org Date: Tue Aug 26 01:59:32 2014 +0000
Change unittest; parseNetworkStatusFile() should return `RouterStatusEntryV2`s. --- lib/bridgedb/test/test_parse_descriptors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/test/test_parse_descriptors.py b/lib/bridgedb/test/test_parse_descriptors.py index 90ecb73..da8078c 100644 --- a/lib/bridgedb/test/test_parse_descriptors.py +++ b/lib/bridgedb/test/test_parse_descriptors.py @@ -22,6 +22,7 @@ HAS_STEM = False try: from stem.descriptor.server_descriptor import RelayDescriptor from stem.descriptor.extrainfo_descriptor import BridgeExtraInfoDescriptor + from stem.descriptor.router_status_entry import RouterStatusEntryV2 from bridgedb.parse import descriptors except (ImportError, NameError), error: print("There was an error importing stem: %s" % error) @@ -188,7 +189,7 @@ class ParseDescriptorsTests(unittest.TestCase): BRIDGE_NETWORKSTATUS_0) routers = descriptors.parseNetworkStatusFile(descFile) bridge = routers.items()[0] - self.assertIsInstance(bridge, RelayDescriptor) + self.assertIsInstance(bridge, RouterStatusEntryV2) self.assertEqual(bridge.address, u'152.78.9.20') self.assertEqual(bridge.fingerprint, u'6FA9216CF3A06E89A03121ACC31F70F8DFD7DDCC')
tor-commits@lists.torproject.org