~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-31 14:12:38 UTC
  • mfrom: (13829.1.2 bug-837893)
  • Revision ID: launchpad@pqm.canonical.com-20110831141238-7j8u6l836msisjd6
[r=danilo][bug=837893] Missing database privileges for DSDJob.

Show diffs side-by-side

added added

removed removed

Lines of Context:
962
962
        for user in script_users:
963
963
            self.layer.switchDbUser(user)
964
964
            list(dsp.parent_series.getDerivedSeries())
 
965
 
 
966
    def test_passesPackagesetFilter(self):
 
967
        dsp = self.factory.makeDistroSeriesParent()
 
968
        self.factory.makePackageset(distroseries=dsp.parent_series)
 
969
        spph = self.factory.makeSourcePackagePublishingHistory(
 
970
            distroseries=dsp.parent_series,
 
971
            archive=dsp.parent_series.main_archive,
 
972
            pocket=PackagePublishingPocket.RELEASE)
 
973
        dsdj = create_job(
 
974
            dsp.derived_series, spph.sourcepackagerelease.sourcepackagename,
 
975
            dsp.parent_series)
 
976
        transaction.commit()
 
977
 
 
978
        self.layer.switchDbUser('distroseriesdifferencejob')
 
979
 
 
980
        dsdj.passesPackagesetFilter()
 
981
 
 
982
        # The test is that we get here without exceptions.
 
983
        pass