~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
            datepublished=datepublished,
283
283
            scheduleddeletiondate=scheduleddeletiondate,
284
284
            pocket=pocket,
285
 
            archive=archive)
 
285
            archive=archive,
 
286
            creator=creator)
286
287
 
287
288
        return spph
288
289
 
1011
1012
        # Section has no default so it comes from the old publication.
1012
1013
        self.assertEqual(spph.section, copy.section)
1013
1014
 
 
1015
    def test_copyTo_sets_ancestor(self):
 
1016
        # SPPH's ancestor get's populated when a spph is copied over.
 
1017
        target_archive = self.factory.makeArchive()
 
1018
        spph = self.factory.makeSourcePackagePublishingHistory()
 
1019
        copy = spph.copyTo(
 
1020
            spph.distroseries, spph.pocket, target_archive)
 
1021
 
 
1022
        self.assertEqual(spph, copy.ancestor)
 
1023
 
1014
1024
 
1015
1025
class BuildRecordCreationTests(TestNativePublishingBase):
1016
1026
    """Test the creation of build records."""