~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Stuart Bishop
  • Date: 2011-06-03 09:56:32 UTC
  • mto: (7675.1045.464 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13163.
  • Revision ID: stuart.bishop@canonical.com-20110603095632-t4gb6dvm8zl1l0gb
Use login_celebrity

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    >>> from canonical.launchpad.interfaces.lpstorm import IMasterStore
29
29
    >>> from lp.bugs.interfaces.bugtask import BugTaskStatus
30
30
    >>> from lp.bugs.model.bugsummary import BugSummary
 
31
    >>> from lp.testing import login_celebrity
 
32
    >>> me = login_celebrity("admin")
31
33
    >>> store = IMasterStore(BugSummary)
32
 
    >>> from lp.testing.sampledata import ADMIN_EMAIL
33
 
    >>> login(ADMIN_EMAIL)
34
34
 
35
35
    >>> def name(object_or_none):
36
36
    ...     if object_or_none is None: