summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-11-15 16:55:07 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-11-15 16:55:07 +0100
commit92cc00805d175dc013d544bcee603e8a0c031c2b (patch)
treee33d5d7e7ae3910b67b3193401bf331aa5e80b07 /tests
parenta0c9ec82095d2e09715e5dc953119ec4fa7b4c2e (diff)
parentfcd268692450231c98bfb6ac2e573ce466e014c7 (diff)
downloadpython-apt-92cc00805d175dc013d544bcee603e8a0c031c2b.tar.gz
merged from lp:~mvo/apt/mvo
Diffstat (limited to 'tests')
-rw-r--r--tests/test_debfile.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_debfile.py b/tests/test_debfile.py
index 951c2afe..501b8f61 100644
--- a/tests/test_debfile.py
+++ b/tests/test_debfile.py
@@ -87,7 +87,7 @@ class TestDebfilee(unittest.TestCase):
self.assertEqual(deb["Maintainer"],
"Samuel Lidén Borell <samuel@slbdata.se>")
- def testContent(self):
+ def test_content(self):
# no python-debian for python3 yet, so fail gracefully
try:
import debian
@@ -130,6 +130,17 @@ Description: testpackage for gdebi - contains usr/bin/binary for file reading
# we need to support python2.6
self.assertTrue(raised)
+ def test_multiarch_deb(self):
+ print apt_pkg.get_architectures()
+ if apt_pkg.get_architectures() != ["amd64", "i386"]:
+ logging.warn("skipping test because running on a non-multiarch system")
+ return
+ deb = apt.debfile.DebPackage("./data/test_debs/multiarch-test1_i386.deb")
+ print deb.missing_deps()
+
+
+
+
if __name__ == "__main__":
#logging.basicConfig(level=logging.DEBUG)
unittest.main()