~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/tests/test_project_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:
263
263
            owner=sample_person,
264
264
            status=BugTaskStatus.CONFIRMED)
265
265
        bug = product.createBug(params)
266
 
        getUtility(IBugTaskSet).createTask(bug, owner=sample_person,
267
 
                                           productseries=series)
 
266
        getUtility(IBugTaskSet).createTask(bug, sample_person, series)
268
267
        for bugtask in bug.bugtasks:
269
268
            if bugtask.productseries is not None:
270
269
                bugtask.milestone = milestone