~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-02 04:21:43 UTC
  • mfrom: (13571.2.4 createtask-and-addtask)
  • Revision ID: launchpad@pqm.canonical.com-20110802042143-26jeqxhukor1eg0e
[r=benji][no-qa] Bug.addTask and BugTaskSet.createTask now take an
 IBugTarget directly instead of a target key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
        product_bar = self.factory.makeProduct(name="bar")
497
497
        foo_bug = self.factory.makeBug(product=product_foo)
498
498
        bugtask_set = getUtility(IBugTaskSet)
499
 
        bugtask_set.createTask(
500
 
            bug=foo_bug, owner=foo_bug.owner, product=product_bar)
 
499
        bugtask_set.createTask(foo_bug, foo_bug.owner, product_bar)
501
500
 
502
501
        removeSecurityProxy(product_bar).active = False
503
502