diff options
| author | Julian Andres Klode <jak@debian.org> | 2011-04-06 11:17:40 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2011-04-06 11:17:40 +0200 |
| commit | fedfc6ec4584f43364e13e35326d051f5526700b (patch) | |
| tree | 953f56bd9ce94987f381bc046e93e56fa2bd3eda | |
| parent | 5ad927a38cad08a2d79f327e7bb3cc46316fa6a4 (diff) | |
| download | python-apt-fedfc6ec4584f43364e13e35326d051f5526700b.tar.gz | |
tests/test_apt_cache.py: Use assertTrue() instead of assert_()
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rw-r--r-- | tests/test_apt_cache.py | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index cbe92343..9d708753 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ python-apt (0.8.0~exp2) UNRELEASED; urgency=low * aptsources: Allow insertion of new multi-arch entries * aptsources: Various cleanup work * all: Fix all instances of ResourceWarning about unclosed files + * tests/test_apt_cache.py: Use assertTrue() instead of assert_() -- Julian Andres Klode <jak@debian.org> Wed, 06 Apr 2011 09:46:52 +0200 diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index 151a20e2..aaa9f601 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -48,9 +48,9 @@ class TestAptCache(unittest.TestCase): # tons of seek operations r = pkg.candidate.record 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.shortname)) + self.assertTrue('Version' in r) + self.assertTrue(len(r['Description']) > 0) + self.assertTrue(str(r).startswith('Package: %s\n' % pkg.shortname)) def test_get_provided_packages(self): cache = apt.Cache() |
