diff options
| author | Julian Andres Klode <jak@debian.org> | 2011-04-05 15:56:14 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2011-04-05 15:56:14 +0200 |
| commit | 6ae5009c6cfe56b66a22848f80eff6239245f1e7 (patch) | |
| tree | 15cc1b2caec6196c0176d0c4581f4f438a05d28e /tests | |
| parent | 1c6ecaa6776498d27bcce81fa769a677a587215a (diff) | |
| download | python-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.py | 5 |
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() |
