summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()