~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/scripts/tests/test_initialise_distroseries.py

  • Committer: Julian Edwards
  • Date: 2010-08-26 08:02:08 UTC
  • mfrom: (11447 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11453.
  • Revision ID: julian.edwards@canonical.com-20100826080208-sut7s35g9z0qtk9v
merge devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
    def assertDistroSeriesInitialisedCorrectly(self, foobuntu):
95
95
        # Check that 'pmount' has been copied correctly
96
 
        hoary_pmount_pubs = self.hoary.getPublishedReleases('pmount')
97
 
        foobuntu_pmount_pubs = foobuntu.getPublishedReleases('pmount')
98
 
        self.assertEqual(len(hoary_pmount_pubs), len(foobuntu_pmount_pubs))
 
96
        hoary_pmount_pubs = self.hoary.getPublishedSources('pmount')
 
97
        foobuntu_pmount_pubs = foobuntu.getPublishedSources('pmount')
 
98
        self.assertEqual(
 
99
            hoary_pmount_pubs.count(),
 
100
            foobuntu_pmount_pubs.count())
99
101
        hoary_i386_pmount_pubs = self.hoary['i386'].getReleasedPackages(
100
102
            'pmount')
101
103
        foobuntu_i386_pmount_pubs = foobuntu['i386'].getReleasedPackages(
144
146
        foobuntu = self._create_distroseries(self.hoary)
145
147
        self._set_pending_to_failed(self.hoary)
146
148
        transaction.commit()
147
 
        ids = InitialiseDistroSeries(foobuntu, ('i386',))
 
149
        ids = InitialiseDistroSeries(foobuntu, ('i386', ))
148
150
        ids.check()
149
151
        ids.initialise()
150
152
        self.assertDistroSeriesInitialisedCorrectly(foobuntu)