~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/tests/test_processaccepted.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-03-07 02:06:46 UTC
  • mfrom: (12505.4.6 bug-727560)
  • Revision ID: launchpad@pqm.canonical.com-20110307020646-guuv2x7ny1jifyjr
[r=thumper,
        wallyworld][bug=727560] Convert Archive.getPublishedSources to storm
        and use DecoratedResultSet rather than prejoins for eager loading.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        self.assertEqual(published_main.count(), 0)
126
126
 
127
127
        # Check the copy archive source was accepted.
128
 
        [published_copy] = copy_archive.getPublishedSources(
129
 
            name=self.test_package_name)
 
128
        published_copy = copy_archive.getPublishedSources(
 
129
            name=self.test_package_name).one()
130
130
        self.assertEqual(
131
131
            published_copy.status, PackagePublishingStatus.PENDING)
132
132
        self.assertEqual(copy_source, published_copy.sourcepackagerelease)