commit a9ac97a321db144c5179eb6cab368f1d4773db7a Author: Isis Lovecruft isis@torproject.org Date: Wed Dec 11 04:35:20 2013 +0000
Make PortList.__getitem__ unittest more explicit. --- lib/bridgedb/test/test_parse_addr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/test/test_parse_addr.py b/lib/bridgedb/test/test_parse_addr.py index 25e7019..e29c554 100644 --- a/lib/bridgedb/test/test_parse_addr.py +++ b/lib/bridgedb/test/test_parse_addr.py @@ -583,7 +583,7 @@ class PortListTest(unittest.TestCase): """Test ``__getitem__`` with a port number in the PortList.""" ports = (443, 9001, 9030) portList = addr.PortList(*ports) - self.assertTrue(portList.__getitem__(0)) + self.assertEqual(portList.__getitem__(0), 9001)
def test_getitem_shouldNotContain(self): """Test ``__getitem__`` with a port number not in the PortList."""
tor-commits@lists.torproject.org