~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • Committer: Ian Booth
  • Date: 2011-07-20 02:53:15 UTC
  • mto: This revision was merged to the branch mainline in revision 13473.
  • Revision ID: ian.booth@canonical.com-20110720025315-dl1il91xii1egd4x
Tweaks to fix tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1677
1677
        bug = getUtility(IBugSet).createBug(create_bug_params)
1678
1678
        if bug_watch_url is not None:
1679
1679
            # fromText() creates a bug watch associated with the bug.
1680
 
            with person_logged_in(owner):
1681
 
                getUtility(IBugWatchSet).fromText(bug_watch_url, bug, owner)
 
1680
            getUtility(IBugWatchSet).fromText(bug_watch_url, bug, owner)
1682
1681
        bugtask = bug.default_bugtask
1683
1682
        if date_closed is not None:
1684
1683
            bugtask.transitionToStatus(