~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/tests/test_bugsummary.py

Merged rocketfuel into trivial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
404
404
            self.getPublicCount(BugSummary.product == product_b),
405
405
            0)
406
406
 
407
 
        bug_task.product = product_b
 
407
        removeSecurityProxy(bug_task).product = product_b
408
408
 
409
409
        self.assertEqual(
410
410
            self.getPublicCount(BugSummary.product == product_a),
473
473
            self.getPublicCount(BugSummary.productseries == productseries_a),
474
474
            1)
475
475
 
476
 
        series_task.productseries = productseries_b
 
476
        removeSecurityProxy(series_task).productseries = productseries_b
477
477
 
478
478
        self.assertEqual(
479
479
            self.getPublicCount(BugSummary.product == product),
523
523
            self.getPublicCount(BugSummary.distribution == distribution_a),
524
524
            1)
525
525
 
526
 
        bug_task.distribution = distribution_b
 
526
        removeSecurityProxy(bug_task).distribution = distribution_b
527
527
 
528
528
        self.assertEqual(
529
529
            self.getPublicCount(BugSummary.distribution == distribution_a),
587
587
            self.getPublicCount(BugSummary.distroseries == series_b),
588
588
            0)
589
589
 
590
 
        bug_task.distroseries = series_b
 
590
        removeSecurityProxy(bug_task).distroseries = series_b
591
591
 
592
592
        self.assertEqual(
593
593
            self.getPublicCount(BugSummary.distribution == distribution),
667
667
                    == sourcepackage_b.sourcepackagename),
668
668
            0)
669
669
 
670
 
        bug_task.sourcepackagename = sourcepackage_b.sourcepackagename
 
670
        removeSecurityProxy(bug_task).sourcepackagename = (
 
671
            sourcepackage_b.sourcepackagename)
671
672
 
672
673
        self.assertEqual(
673
674
            self.getPublicCount(
706
707
                    == sourcepackage.sourcepackagename),
707
708
            1)
708
709
 
709
 
        bug_task.sourcepackagename = None
 
710
        removeSecurityProxy(bug_task).sourcepackagename = None
710
711
 
711
712
        self.assertEqual(
712
713
            self.getPublicCount(
788
789
                BugSummary.sourcepackagename == sourcepackagename_b),
789
790
            0)
790
791
 
791
 
        bug_task.sourcepackagename = sourcepackagename_b
 
792
        removeSecurityProxy(bug_task).sourcepackagename = sourcepackagename_b
792
793
 
793
794
        self.assertEqual(
794
795
            self.getPublicCount(
849
850
                BugSummary.sourcepackagename == sourcepackagename),
850
851
            1)
851
852
 
852
 
        bug_task.sourcepackagename = None
 
853
        removeSecurityProxy(bug_task).sourcepackagename = None
853
854
 
854
855
        self.assertEqual(
855
856
            self.getPublicCount(