681
681
def test_addDistroSeriesSourcePackage(self):
682
raise NotImplementedError
682
distribution = self.factory.makeDistribution()
683
series = self.factory.makeDistroRelease(distribution=distribution)
684
package = self.factory.makeSourcePackage(distroseries=series)
685
sourcepackagename = package.sourcepackagename
686
bug_task = self.factory.makeBugTask(target=package)
690
BugSummary.distribution == distribution,
691
BugSummary.sourcepackagename == None),
695
BugSummary.distribution == distribution,
696
BugSummary.sourcepackagename == sourcepackagename),
700
BugSummary.distroseries == series,
701
BugSummary.sourcepackagename == None),
705
BugSummary.distroseries == series,
706
BugSummary.sourcepackagename == sourcepackagename),
684
709
def test_changeDistroSeriesSourcePackage(self):
685
raise NotImplementedError
710
distribution = self.factory.makeDistribution()
711
series = self.factory.makeDistroRelease(distribution=distribution)
712
package_a = self.factory.makeSourcePackage(distroseries=series)
713
package_b = self.factory.makeSourcePackage(distroseries=series)
714
sourcepackagename_a = package_a.sourcepackagename
715
sourcepackagename_b = package_b.sourcepackagename
716
bug_task = self.factory.makeBugTask(target=package_a)
720
BugSummary.distribution == distribution,
721
BugSummary.sourcepackagename == None),
725
BugSummary.distribution == distribution,
726
BugSummary.sourcepackagename == sourcepackagename_a),
730
BugSummary.distribution == distribution,
731
BugSummary.sourcepackagename == sourcepackagename_b),
735
BugSummary.distroseries == series,
736
BugSummary.sourcepackagename == None),
740
BugSummary.distroseries == series,
741
BugSummary.sourcepackagename == sourcepackagename_a),
745
BugSummary.distroseries == series,
746
BugSummary.sourcepackagename == sourcepackagename_b),
749
bug_task.sourcepackagename = sourcepackagename_b
753
BugSummary.distribution == distribution,
754
BugSummary.sourcepackagename == None),
758
BugSummary.distribution == distribution,
759
BugSummary.sourcepackagename == sourcepackagename_a),
763
BugSummary.distribution == distribution,
764
BugSummary.sourcepackagename == sourcepackagename_b),
768
BugSummary.distroseries == series,
769
BugSummary.sourcepackagename == None),
773
BugSummary.distroseries == series,
774
BugSummary.sourcepackagename == sourcepackagename_a),
778
BugSummary.distroseries == series,
779
BugSummary.sourcepackagename == sourcepackagename_b),
687
782
def test_removeDistroSeriesSourcePackage(self):
688
raise NotImplementedError
783
distribution = self.factory.makeDistribution()
784
series = self.factory.makeDistroRelease(distribution=distribution)
785
package = self.factory.makeSourcePackage(distroseries=series)
786
sourcepackagename = package.sourcepackagename
787
bug_task = self.factory.makeBugTask(target=package)
791
BugSummary.distribution == distribution,
792
BugSummary.sourcepackagename == None),
796
BugSummary.distribution == distribution,
797
BugSummary.sourcepackagename == sourcepackagename),
801
BugSummary.distroseries == series,
802
BugSummary.sourcepackagename == None),
806
BugSummary.distroseries == series,
807
BugSummary.sourcepackagename == sourcepackagename),
810
bug_task.sourcepackagename = None
814
BugSummary.distribution == distribution,
815
BugSummary.sourcepackagename == None),
819
BugSummary.distribution == distribution,
820
BugSummary.sourcepackagename == sourcepackagename),
824
BugSummary.distroseries == series,
825
BugSummary.sourcepackagename == None),
829
BugSummary.distroseries == series,
830
BugSummary.sourcepackagename == sourcepackagename),
690
833
def test_addMilestone(self):
691
834
raise NotImplemetnedError