~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-22 02:25:33 UTC
  • mfrom: (13479.2.9 destroy-bugtask-markers)
  • Revision ID: launchpad@pqm.canonical.com-20110722022533-a76fv2t482ortydn
[incr] [r=sinzui][bug=80902] Remove most uses of the I*BugTask marker
        interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    >>> upstream_task.product == evolution
64
64
    True
65
65
 
66
 
    >>> from lp.bugs.interfaces.bugtask import IUpstreamBugTask
67
 
    >>> IUpstreamBugTask.providedBy(upstream_task)
68
 
    True
69
 
 
70
66
  ii. Distro -- a bug that has to be fixed in a specific distro
71
67
 
72
68
    >>> ubuntu = distroset.get(1)
77
73
    >>> distro_task.distribution == a_distro
78
74
    True
79
75
 
80
 
    >>> from lp.bugs.interfaces.bugtask import IDistroBugTask
81
 
    >>> IDistroBugTask.providedBy(distro_task)
82
 
    True
83
 
 
84
76
  ii. Distro Series -- a bug that has to be fixed in a specific distro
85
77
  series. These tasks are used for release management and backporting.
86
78
 
91
83
    >>> distro_series_task.distroseries == warty
92
84
    True
93
85
 
94
 
    >>> from lp.bugs.interfaces.bugtask import IDistroSeriesBugTask
95
 
    >>> IDistroSeriesBugTask.providedBy(distro_series_task)
96
 
    True
97
 
 
98
 
The created bugtasks are guaranteed to implement the correct interface.
99
 
 
100
 
    >>> from canonical.launchpad.webapp.testing import verifyObject
101
 
    >>> verifyObject(IDistroSeriesBugTask, distro_series_task)
102
 
    True
103
 
    >>> verifyObject(IDistroBugTask, distro_task)
104
 
    True
105
 
    >>> verifyObject(IUpstreamBugTask, upstream_task)
106
 
    True
107
 
 
108
86
# XXX: Brad Bollenbach 2005-02-24: See the bottom of this file for a chunk of
109
87
# test documentation that is missing from here, due to problems with resetting
110
88
# the connection after a ProgrammingError is raised. ARGH.