~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/tests/test_bugtask.py

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
            f.makeSourcePackage(distroseries=ds, publish=True)
150
150
            for i in range(5)]
151
151
        for sp in sourcepackages:
152
 
            bugtask = f.makeBugTask(bug=bug, owner=owner, target=sp)
 
152
            f.makeBugTask(bug=bug, owner=owner, target=sp)
153
153
        url = canonical_url(bug.default_bugtask)
154
154
        recorder = QueryCollector()
155
155
        recorder.register()
1056
1056
                        bug.default_bugtask.product.owner, 'status',
1057
1057
                        BugTaskStatus.NEW, BugTaskStatus.TRIAGED)
1058
1058
                    bug.addChange(change)
1059
 
            for i in range (number_of_comments):
 
1059
            for i in range(number_of_comments):
1060
1060
                msg = self.factory.makeMessage(
1061
1061
                    owner=bug.owner, content="Message %i." % i)
1062
1062
                bug.linkMessage(msg, user=bug.owner)
1084
1084
        # already shown on the page won't appear twice).
1085
1085
        bug_task = self.factory.makeBugTask()
1086
1086
        view = create_initialized_view(bug_task, '+batched-comments')
1087
 
        self.assertEqual(view.visible_initial_comments+1, view.offset)
 
1087
        self.assertEqual(view.visible_initial_comments + 1, view.offset)
1088
1088
        view = create_initialized_view(
1089
1089
            bug_task, '+batched-comments', form={'offset': 100})
1090
1090
        self.assertEqual(100, view.offset)