~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: 2011-12-22 04:05:21 UTC
  • mfrom: (14260.2.7 bug-884649-branch-5)
  • Revision ID: launchpad@pqm.canonical.com-20111222040521-kgndkercui0muy9r
[r=julian-edwards][bug=884649] Use denormalized [BS]PPH.[bs]pn
 columns in dominator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
473
473
            bpph.binarypackagerelease.version,
474
474
            GeneralizedPublication(is_source=False).getPackageVersion(bpph))
475
475
 
476
 
    def test_load_releases_loads_sourcepackagerelease(self):
477
 
        spph = self.factory.makeSourcePackagePublishingHistory()
478
 
        self.assertContentEqual(
479
 
            [spph.sourcepackagerelease],
480
 
            GeneralizedPublication(is_source=True).load_releases([spph]))
481
 
 
482
 
    def test_load_releases_loads_binarypackagerelease(self):
483
 
        bpph = self.factory.makeBinaryPackagePublishingHistory(
484
 
            binarypackagerelease=self.factory.makeBinaryPackageRelease())
485
 
        self.assertContentEqual(
486
 
            [bpph.binarypackagerelease],
487
 
            GeneralizedPublication(is_source=False).load_releases([bpph]))
488
 
 
489
476
    def test_compare_sorts_versions(self):
490
477
        versions = [
491
478
            '1.1v2',