~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=julian-edwards][bug=757550] Make sure changelog files are
        unembargoed with the rest of a package's files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2425
2425
        for build in ppa_source.getBuilds():
2426
2426
            build.log = fake_buildlog
2427
2427
 
 
2428
        # Add a restricted changelog file.
 
2429
        fake_changelog = test_publisher.addMockFile(
 
2430
            'changelog', restricted=True)
 
2431
        ppa_source.sourcepackagerelease.changelog = fake_changelog
 
2432
 
2428
2433
        # Create ancestry environment in the primary archive, so we can
2429
2434
        # test unembargoed overrides.
2430
2435
        ancestry_source = test_publisher.getPubSource(
2477
2482
            if ISourcePackagePublishingHistory.providedBy(published):
2478
2483
                source = published.sourcepackagerelease
2479
2484
                self.assertFalse(source.upload_changesfile.restricted)
 
2485
                self.assertFalse(source.changelog.restricted)
2480
2486
                # Check the source's package diff.
2481
2487
                [diff] = source.package_diffs
2482
2488
                self.assertFalse(diff.diff_content.restricted)