summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-12-13 13:38:05 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-12-13 13:38:05 +0100
commitbebae32a598593f9d427d54cb48a84bd9beac227 (patch)
treefaf26c4819a3e07da1a7190a960f3af9dd8b4186
parent2d26daec6a58a3f7529b46ada6ce17f8e882408d (diff)
downloadpython-apt-bebae32a598593f9d427d54cb48a84bd9beac227.tar.gz
tests/test_apt_cache.py: fix tests
-rw-r--r--tests/test_apt_cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index 0b33a2e3..cfb3ab99 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -59,13 +59,13 @@ class TestAptCache(unittest.TestCase):
self.assertTrue(len(l) > 0)
self.assertTrue("postfix" in [p.name for p in l])
# this is a not virtual (transitional) package provided by another
- l = cache.get_providing_packages("scrollkeeper")
+ l = cache.get_providing_packages("git-core")
self.assertEqual(l, [])
# now inlcude nonvirtual packages in the search (rarian-compat
# provides scrollkeeper)
- l = cache.get_providing_packages("scrollkeeper",
+ l = cache.get_providing_packages("git-core",
include_nonvirtual=True)
- self.assertTrue(len(l), 1)
+ self.assertEqual([p.name for p in l], ["git"])
self.assertTrue("mail-transport-agent" in cache["postfix"].candidate.provides)
def test_low_level_pkg_provides(self):