~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/test_milestone.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:
161
161
        product = self.factory.makeProduct()
162
162
        bug = self.factory.makeBug(product=product)
163
163
        master_bugtask = getUtility(IBugTaskSet).createTask(
164
 
            bug, productseries=product.development_focus, owner=product.owner)
 
164
            bug, product.owner, product.development_focus)
165
165
        milestone = self.factory.makeMilestone(
166
166
            productseries=product.development_focus)
167
167
        login_person(product.owner)