~ubuntu-branches/debian/sid/python-apt/sid

« back to all changes in this revision

Viewing changes to tests/test_debfile.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, Michael Vogt, Julian Andres Klode, Michael Schaller, Barry Warsaw
  • Date: 2015-07-24 17:51:25 UTC
  • Revision ID: package-import@ubuntu.com-20150724175125-rki60ybszmxxb1d9
Tags: 1.0.0~beta3.1
[ Michael Vogt ]
* fix py3 issue with auto .gz decompression and add test
* updated for the gcc5 transition

[ Julian Andres Klode ]
* doc/source/conf.py: Reproducibility: Set html_last_updated_fmt = None

[ Michael Schaller ]
* BaseDependency.__repr__: Replace pre_depend with rawtype
* apt/package.py: Add rawtype property to Dependency class
* Add dependency comparison (aka. relation) type in Debian notation
* apt/package.py: Add missing __str__ and __repr__ methods
* doc/source/library/apt_pkg.rst: Remove trailing whitespace
* apt_pkg.Dependency.all_targets: Fix the documentation

[ Barry Warsaw ]
* python-apt: Python 3.5 and PEP 479 support (Closes: #792606)

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
            "./data/test_debs/testdep-same-arch_1.0-1_i386.deb")
179
179
        self.assertTrue(same.check(), same._failure_string)
180
180
 
 
181
    def test_get_content_gzip_data(self):
 
182
        deb = apt.debfile.DebPackage("./data/test_debs/gdebi-test13.deb")
 
183
        data = deb.data_content("./lala.gz")
 
184
        self.assertEqual(data, "Automatically decompressed:\n\nlala\n")
 
185
 
181
186
 
182
187
if __name__ == "__main__":
183
188
    #logging.basicConfig(level=logging.DEBUG)