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

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:34 UTC 2014


commit 7530035f3cc625723b308633334c28f78a4c6e06
Author: Isis Lovecruft <isis at torproject.org>
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'





More information about the tor-commits mailing list