~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
618
618
            NoRightsForArchive, archive, person, sourcepackagename,
619
619
            distroseries=distroseries)
620
620
 
 
621
    def test_checkUploadToPocket_for_released_distroseries_copy_archive(self):
 
622
        # Uploading to the release pocket in a released COPY archive
 
623
        # should be allowed.  This is mainly so that rebuilds that are
 
624
        # running during the release process don't suddenly cause
 
625
        # exceptions in the buildd-manager.
 
626
        archive = self.factory.makeArchive(purpose=ArchivePurpose.COPY)
 
627
        distroseries = self.factory.makeDistroSeries(
 
628
            distribution=archive.distribution,
 
629
            status=SeriesStatus.CURRENT)
 
630
        self.assertIs(
 
631
            None,
 
632
            archive.checkUploadToPocket(
 
633
                distroseries, PackagePublishingPocket.RELEASE))
 
634
 
621
635
    def test_checkUpload_package_permission(self):
622
636
        archive, distroseries = self.makeArchiveAndActiveDistroSeries(
623
637
            purpose=ArchivePurpose.PRIMARY)