summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-05 15:56:14 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-05 15:56:14 +0200
commit6ae5009c6cfe56b66a22848f80eff6239245f1e7 (patch)
tree15cc1b2caec6196c0176d0c4581f4f438a05d28e /tests
parent1c6ecaa6776498d27bcce81fa769a677a587215a (diff)
downloadpython-apt-6ae5009c6cfe56b66a22848f80eff6239245f1e7.tar.gz
Introduce apt_pkg.Cache.groups and apt_pkg.Cache.group_count
Diffstat (limited to 'tests')
-rw-r--r--tests/test_group.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_group.py b/tests/test_group.py
index c69e4dbb..3c3a5b7a 100644
--- a/tests/test_group.py
+++ b/tests/test_group.py
@@ -23,5 +23,10 @@ class TestGroup(unittest.TestCase):
list(group) == list(group)
+ def test_cache_groups(self):
+ """group: Iterate over all groups"""
+ assert len(list(self.cache.groups)) == self.cache.group_count
+
+
if __name__ == "__main__":
unittest.main()