[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Change unittest to demand {(fpr, router), ...} is returned after deduplicate().



commit 1650ff00c97f9e39afdcdfefa08741cffbb70163
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Tue Aug 26 03:55:55 2014 +0000

    Change unittest to demand {(fpr, router),...} is returned after deduplicate().
---
 lib/bridgedb/test/test_parse_descriptors.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/test/test_parse_descriptors.py b/lib/bridgedb/test/test_parse_descriptors.py
index 6a44895..85863e4 100644
--- a/lib/bridgedb/test/test_parse_descriptors.py
+++ b/lib/bridgedb/test/test_parse_descriptors.py
@@ -231,11 +231,11 @@ class ParseDescriptorsTests(unittest.TestCase):
 
     def test_parse_descriptors_parseBridgeExtraInfoFiles_return_type(self):
         """The return type of ``b.p.descriptors.parseBridgeExtraInfoFiles``
-        should be a list.
+        should be a dictionary (after deduplication).
         """
         descFile = io.BytesIO(BRIDGE_EXTRA_INFO_DESCRIPTOR)
         routers = descriptors.parseBridgeExtraInfoFiles(descFile)
-        self.assertIsInstance(routers, list)
+        self.assertIsInstance(routers, dict)
 
     def test_parse_descriptors_parseBridgeExtraInfoFiles_has_BridgeExtraInfoDescriptor(self):
         """The return of ``b.p.descriptors.parseBridgeExtraInfoFiles`` should



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits