From cf0b0c05ee4d228363f8331c30f993b8ce5c569b Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 23 Jan 2014 14:27:34 +0100 Subject: tests/test_aptsources.py: Fix regression in d95a8f2 Commit d95a8f27774842beb43bda54c4c61b67fe76a032 introduced a regression in this test that did not catch an invalid False value for the trusted property of a source without trusted set. --- tests/test_aptsources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py index e6d0bd82..f955205f 100644 --- a/tests/test_aptsources.py +++ b/tests/test_aptsources.py @@ -156,7 +156,7 @@ class TestAptSources(unittest.TestCase): assert sources.list[8].dist == "natty" assert sources.list[8].comps == ["main"] assert sources.list[8].line.strip() == str(sources.list[8]) - assert not sources.list[8].trusted + assert sources.list[8].trusted is None def testMultipleOptions(self): """aptsources: Test multi-arch parsing""" -- cgit v1.2.3