~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugtask-expiration.txt

  • Committer: Bryce Harrington
  • Date: 2011-06-30 20:01:25 UTC
  • mto: This revision was merged to the branch mainline in revision 13353.
  • Revision ID: bryce@canonical.com-20110630200125-rpkxch89ti91kamy
Fix typo in message referring to /etc/apt/sources.list

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
    # An expirable bugtask, a distroseries. The ubuntu bugtask is its
87
87
    # conjoined slave.
 
88
    >>> from lp.bugs.tests.bug import sync_bugtasks
88
89
    >>> hoary_bugtask = bugtaskset.createTask(
89
90
    ...     bug=ubuntu_bugtask.bug, owner=sample_person,
90
91
    ...     distroseries=ubuntu.currentseries)
92
93
    True
93
94
    >>> ubuntu_bugtask.bug.permits_expiration
94
95
    True
 
96
    >>> sync_bugtasks([ubuntu_bugtask, hoary_bugtask])
95
97
    >>> ubuntu_bugtask.bug.can_expire
96
98
    True
97
99
 
289
291
will be expirable.
290
292
 
291
293
    >>> new_bugtask.transitionToStatus(BugTaskStatus.WONTFIX, sample_person)
 
294
    >>> sync_bugtasks(new_bugtask)
292
295
    >>> hoary_bugtask.bug.can_expire
293
296
    True
294
297
    >>> summarize_bugtasks(hoary_bugtask.bug.bugtasks)
555
558
expired.
556
559
 
557
560
    >>> no_expiration_bugtask.pillar.enable_bug_expiration = True
 
561
    >>> from canonical.launchpad.ftests import sync
 
562
    >>> sync(no_expiration_bugtask.pillar)
558
563
 
559
564
    >>> no_expiration_bugtask.bug.permits_expiration
560
565
    True