commit 227371b8668f3331df73379403a548846c4755e9 Author: Isis Lovecruft isis@torproject.org Date: Sun Dec 28 12:39:45 2014 +0000
Change test_bridges.py unittest to also check bridgeline != None. --- lib/bridgedb/test/test_bridges.py | 1 + 1 file changed, 1 insertion(+)
diff --git a/lib/bridgedb/test/test_bridges.py b/lib/bridgedb/test/test_bridges.py index 8328e16..86b60bf 100644 --- a/lib/bridgedb/test/test_bridges.py +++ b/lib/bridgedb/test/test_bridges.py @@ -265,6 +265,7 @@ class BridgeIntegrationTests(unittest.TestCase): id_digest=self.id_digest, or_addresses=self.or_addresses) bridgeLine = bridge.getConfigLine(includeFingerprint=True) + self.assertIsNotNone(bridgeLine) self.assertSubstring(self.fingerprint, bridgeLine) ip = bridgeLine.split(':')[0] self.assertTrue(ipaddr.IPAddress(ip))