~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archivepublisher/tests/test_dominator.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-03 05:05:39 UTC
  • mfrom: (14514.3.5 new-python-apt)
  • Revision ID: launchpad@pqm.canonical.com-20120103050539-y6ipuo5e9illcrsr
[r=benji][bug=551510] Port to new python-apt API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
            ]
494
494
        spphs = make_spphs_for_versions(self.factory, versions)
495
495
 
496
 
        debian_sorted_versions = sorted(versions, cmp=apt_pkg.VersionCompare)
 
496
        debian_sorted_versions = sorted(versions, cmp=apt_pkg.version_compare)
497
497
 
498
498
        # Assumption: in this case, Debian version ordering is not the
499
499
        # same as alphabetical version ordering.
502
502
        # The compare method produces the Debian ordering.
503
503
        sorted_spphs = sorted(spphs, cmp=GeneralizedPublication().compare)
504
504
        self.assertEqual(
505
 
            sorted(versions, cmp=apt_pkg.VersionCompare),
 
505
            sorted(versions, cmp=apt_pkg.version_compare),
506
506
            list_source_versions(sorted_spphs))
507
507
 
508
508
    def test_compare_breaks_tie_with_creation_date(self):