summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-06-06 18:28:54 +0200
committerMichael Vogt <mvo@debian.org>2013-06-06 18:28:54 +0200
commit7bf32e0194819f292ae3012e00ba0a96c2c30852 (patch)
treefa23727cb873cda72f96f8ceb2e0d22711f451a0 /tests
parent76f6e07ec8c08c011ee9ab8f46d77972e42e73cf (diff)
downloadpython-apt-7bf32e0194819f292ae3012e00ba0a96c2c30852.tar.gz
add support for "key in apt.debfile.DebPackage" (closes: #710541)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_debfile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_debfile.py b/tests/test_debfile.py
index 75c46966..2ae73a45 100644
--- a/tests/test_debfile.py
+++ b/tests/test_debfile.py
@@ -133,6 +133,10 @@ Description: testpackage for gdebi - contains usr/bin/binary for file reading
# we need to support python2.6
self.assertTrue(raised)
+ def test_contains(self):
+ deb = apt.debfile.DebPackage("./data/test_debs/data-tar-xz.deb")
+ self.assertTrue("Package" in deb)
+
if __name__ == "__main__":
#logging.basicConfig(level=logging.DEBUG)