diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-31 22:14:52 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-31 22:14:52 +0200 |
| commit | 01ae32fec88cc63623874752f79b052fbb2cf028 (patch) | |
| tree | 691ce7320e5fb9d9eb268423bd90b46f3a7e4749 /tests/test_apt_cache.py | |
| parent | 82dc1170b0b29f7bb264d046d1c9253f4d97fb10 (diff) | |
| parent | 0051fdbeff5e08248900cf0b8858178a3dceba7b (diff) | |
| download | python-apt-01ae32fec88cc63623874752f79b052fbb2cf028.tar.gz | |
merged from http://bzr.debian.org/apt/python-apt/debian-sid/
Diffstat (limited to 'tests/test_apt_cache.py')
| -rw-r--r-- | tests/test_apt_cache.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index 3c2961e1..fdcf482d 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -15,9 +15,9 @@ class TestAptCache(unittest.TestCase): """ test the apt cache """ def testAptCache(self): - """ simple test that iterates all packages and all dependencies """ + """cache: iterate all packages and all dependencies """ cache = apt.Cache() - # number is not meaningful and just need to be "big enough", + # number is not meaningful and just need to be "big enough", # the important bit is the test against __len__ self.assertTrue(len(cache) > 100) # go over the cache and all dependencies, just to see if @@ -26,9 +26,9 @@ class TestAptCache(unittest.TestCase): if pkg.candidate: for or_dep in pkg.candidate.dependencies: for dep in or_dep.or_dependencies: - name = dep.name - relation = dep.relation - preDepends = dep.pre_depend + self.assertTrue(dep.name) + self.assertTrue(isinstance(dep.relation, str)) + self.assertTrue(dep.pre_depend in (True, False)) if __name__ == "__main__": unittest.main() |
