summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-04 10:40:25 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-04 10:40:25 +0200
commitd89f51fee4d09f543aa015b00d62e49a86c10eb1 (patch)
tree6aaaac67144d39f01b1d8c1f668973d29a45223f
parentc17e4cde5cab0f5290d4b77092dfadf115ba4b02 (diff)
downloadpython-apt-d89f51fee4d09f543aa015b00d62e49a86c10eb1.tar.gz
* tests/test_apt_cache.py:
- Package records 'Package' field now corresponds to shortname
-rw-r--r--debian/changelog2
-rw-r--r--tests/test_apt_cache.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index fc078c19..34f126b8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,8 @@ python-apt (0.7.100.3) UNRELEASED; urgency=low
- Change apt.Package.name to use get_fullname(pretty=True) (LP: #740072)
* tests/test_debfile.py:
- Disable multi-arch for the test, it fails when run via test_all.py
+ * tests/test_apt_cache.py:
+ - Package records 'Package' field now corresponds to shortname
-- Julian Andres Klode <jak@debian.org> Mon, 04 Apr 2011 09:48:10 +0200
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index cfb3ab99..cccfc9c8 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -47,10 +47,10 @@ class TestAptCache(unittest.TestCase):
# particular, when using compressed indexes, it should not use
# tons of seek operations
r = pkg.candidate.record
- self.assertEqual(r['Package'], pkg.name)
+ self.assertEqual(r['Package'], pkg.shortname)
self.assert_('Version' in r)
self.assert_(len(r['Description']) > 0)
- self.assert_(str(r).startswith('Package: %s\n' % pkg.name))
+ self.assert_(str(r).startswith('Package: %s\n' % pkg.shortname))
def test_get_provided_packages(self):
cache = apt.Cache()