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

[tor-commits] [bridgedb/master] Fix ParseNetworkStatusALineTests.test_missingPrefix unittest.



commit 7530035f3cc625723b308633334c28f78a4c6e06
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Fri Dec 20 06:03:43 2013 +0000

    Fix ParseNetworkStatusALineTests.test_missingPrefix unittest.
---
 lib/bridgedb/test/test_parse_networkstatus.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/test/test_parse_networkstatus.py b/lib/bridgedb/test/test_parse_networkstatus.py
index ddeacdf..7b0826c 100644
--- a/lib/bridgedb/test/test_parse_networkstatus.py
+++ b/lib/bridgedb/test/test_parse_networkstatus.py
@@ -331,9 +331,13 @@ class ParseNetworkStatusALineTests(unittest.TestCase):
             self.assertTrue(field is None)
 
     def test_missingPrefix(self):
+        """Changed to allow a missing 'a' prefix in branch
+        ``hotfix/9462B-netstatus-returns-None``.
+        """
         self.line = '%s:1234' % self.oraddr
         fields = networkstatus.parseALine(self.line)
-        self.assertAllFieldsAreNone(fields)
+        this(ip).should.be.a(basestring)
+        this(port).should.be(None)
 
     def test_IPv4(self):
         self.line = 'a 48.32.199.45:9001'



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