~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Julian Edwards
  • Date: 2011-07-07 10:31:38 UTC
  • mto: This revision was merged to the branch mainline in revision 13385.
  • Revision ID: julian.edwards@canonical.com-20110707103138-urvwpih6m5h8mvgb
Make the PackageCopyJob runner responsible for setting PackageUpload's 
status to done instead of the process-accepted script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
734
734
        pu.acceptFromQueue()
735
735
        self.runJob(job)
736
736
 
 
737
        # The job should have set the PU status to DONE:
 
738
        self.assertEqual(PackageUploadStatus.DONE, pu.status)
 
739
 
 
740
        # Make sure packages were actually copied.
737
741
        existing_sources = target_archive.getPublishedSources(name='copyme')
738
742
        self.assertIsNot(None, existing_sources.any())
739
743