diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-12-21 18:19:15 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-12-21 18:19:15 +0100 |
| commit | a4bd6f49f40e1dad06530fbcfa5768a8487d84ba (patch) | |
| tree | 62c66fb47ac0c77e8230a041e71c07d3539ed669 /tests | |
| parent | 4861eac4753a9b60ed6df2d25aae0da74b84728a (diff) | |
| parent | b4816b79b3ce90fdabed8e812fc8e6f7109d1de0 (diff) | |
| download | python-apt-a4bd6f49f40e1dad06530fbcfa5768a8487d84ba.tar.gz | |
meged from mvo
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_debfile.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_debfile.py b/tests/test_debfile.py index 759639c4..712c4958 100644 --- a/tests/test_debfile.py +++ b/tests/test_debfile.py @@ -100,7 +100,17 @@ class TestDebfilee(unittest.TestCase): deb.open(os.path.join("data", "test_debs", "gdebi-test12.deb")) content = deb.data_content("usr/bin/binary") self.assertTrue(content.startswith("Automatically converted to printable ascii:\n\x7fELF ")) - + # control file + needle = """Package: gdebi-test12 +Version: 1.0 +Architecture: all +Description: testpackage for gdebi - contains usr/bin/binary for file reading + This tests the binary file reading for debfile.py +""" + content = deb.control_content("./control") + self.assertEqual(content, needle) + content = deb.control_content("control") + self.assertEqual(content, needle) if __name__ == "__main__": #logging.basicConfig(level=logging.DEBUG) |
