summaryrefslogtreecommitdiff
path: root/tests/test_apt_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_apt_cache.py')
-rw-r--r--tests/test_apt_cache.py5
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()