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

« back to all changes in this revision

Viewing changes to tests/test_debfile.py

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode, Julian Andres Klode, Michael Vogt, von, Michael Schaller
  • Date: 2015-06-11 22:38:31 UTC
  • Revision ID: package-import@ubuntu.com-20150611223831-1ichot1xx9gwjynu
Tags: 1.0.0~beta1
[ Julian Andres Klode ]
* tests/test_tagfile.py: Close files we opened to prevent leakage
  (Closes: #785337)
* doc/source/c++/api.rst: Upgrade syntax to use the new domain stuff
* doc/source/library/apt_pkg.rst: Fix indentation (Closes: #736119)
* sphinx docs: Fix remaining instances of old C syntax to use domains
* python/cache.cc: Handle deprecation of pkgCache::PkgIterator::Section()
* doc: Prepare for 1.0 release
* TagFile: Provide close() and context manager (Closes: #748922)
* doc: Document apt_pkg.TagFile additions
* doc: templates: layout: Remove invalid icon links
* debian/control: Build-Depend on dh-python
* Do not link documentation from Architecture: all to Architecture: any
* Use ${python:Depends} and friends for the debug packages
* apt.debfile: Fix splitting of multi-lines Binary fields in dsc files
  (Closes: #751770)
* Remove apt.progress.gtk2
* apt_pkg.Package: Drop the unset 'auto' attribute (Closes: #565364)
* Update POTFILES.in and the pot
* apt/cache.py: Work around a cyclic reference from Cache to its methods
  (Closes: #745487)
* apt/debfile.py: Arch-qualify in compare_to_version_in_cache()
  (Closes: #750189)
* apt.package: Only reference Launchpad for missing changelogs on Ubuntu
  (Closes: #781270)
* apt/cache.py: Support :all and other special architecture specifies
* apt/debfile: Stop special-casing all when looking for a package in the cache
* apt/debfile.py: Allow downgrading packages in check() with a parameter
  (Closes: #613974)
* Acquire: Document that items may have transient errors on run() success
  (Closes: #680997)
* Large file support (Closes: #742885)
  - python/arfile.cc: Do not allow files larger than SIZE_MAX to be mapped
  - python/arfile.cc: LFS: Use long long instead of long for file sizes
  - python/tarfile.cc: LFS: Handle too large file
* setup.py: Translate version number from Debian to PEP0440 (LP: #1445949)

[ Michael Vogt ]
* apt_pkg.rst: improve documentation for AcquireFile() hash and add
  sha512 to the documentation
* rename "md5" keyword argument in AcquireFile() to "hash" and add
  backward compatiblity
* Fix apt.Package.installed_files for multi-arch packages (LP: #1313699)

[ von ]
* Remove the "-Wstrict-prototypes" compiler option (Closes: #785261)
* Set Standards-Version to 3.9.6 (Closes: #785431)
* Fix indentation and docstring problems (Closes: #784910)

[ Michael Schaller ]
* Fixed docstring of BaseDependency.version property.
* Improved docstring of the Version.get_dependencies method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        self.assertEqual(set(deb.missing_deps), missing)
72
72
        # specialized properties
73
73
        self.assertEqual(deb.pkgname, "hello")
74
 
        self.assertEqual(deb.binaries, ["hello"])
 
74
        self.assertEqual(deb.binaries, ["hello", "bello", "cello"])
75
75
        self.assertEqual(deb.filelist, ["hello_2.5.orig.tar.gz",
76
76
                                        "hello_2.5-1.diff.gz"])
77
77
        self.assertEqual(deb.depends, [[("autotools-dev", "", "")]])
78
78
        # tag fields are available as a dict
79
79
        self.assertEqual(deb["Format"], "1.0")
80
80
        self.assertEqual(deb["Source"], "hello")
81
 
        self.assertEqual(deb["Binary"], "hello")
 
81
        self.assertEqual(deb["Binary"], "hello, bello,\n cello")
82
82
        self.assertEqual(deb["Architecture"], "any")
83
83
        self.assertEqual(deb["Version"], "2.5-1")
84
84
        self.assertEqual(