diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-21 10:08:44 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-21 10:08:44 +0200 |
| commit | b7ce3c2b47e1234631e00cb0ba8a86fa0aa9c8d8 (patch) | |
| tree | 583780c6eba172bd247f355f2cccd62092b8e118 /tests/test_apt_cache.py | |
| parent | 8ca5779cfe930f8a423969f7266949ab2826cede (diff) | |
| download | python-apt-b7ce3c2b47e1234631e00cb0ba8a86fa0aa9c8d8.tar.gz | |
* python/apt_pkgmodule.cc:
- add apt_pkg.get_architectures() call
Diffstat (limited to 'tests/test_apt_cache.py')
| -rw-r--r-- | tests/test_apt_cache.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index 2b742dfa..0d80f617 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -191,6 +191,11 @@ class TestAptCache(unittest.TestCase): self.assertEqual([p.name for p in l], ["apt", "libc6", "xterm"]) + def test_get_architectures(self): + main_arch = apt.apt_pkg.config.get("APT::Architecture") + arches = apt_pkg.get_architectures() + self.assertTrue(main_arch in arches) + if __name__ == "__main__": unittest.main() |
