~henninge/launchpad/recife-merge-db-stable-9941

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/ftests/test_system_documentation.py

  • Committer: Henning Eggers
  • Date: 2010-11-03 22:07:30 UTC
  • mfrom: (9124.4.817 launchpad)
  • Revision ID: henning@canonical.com-20101103220730-c341srlmgifp17hp
Merged db-stable into recife, resolving conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
"""
8
8
# pylint: disable-msg=C0103
9
9
 
10
 
from __future__ import with_statement
11
 
 
12
10
import logging
13
11
import os
14
12
import unittest
23
21
    ANONYMOUS,
24
22
    login,
25
23
    )
26
 
from canonical.launchpad.interfaces import (
27
 
    IDistributionSet,
28
 
    ILanguageSet,
29
 
    IPersonSet,
30
 
    )
31
24
from canonical.launchpad.testing import browser
32
25
from canonical.launchpad.testing.systemdocs import (
33
26
    LayeredDocFileSuite,
47
40
    )
48
41
from lp.bugs.interfaces.bug import CreateBugParams
49
42
from lp.bugs.interfaces.bugtask import IBugTaskSet
 
43
from lp.registry.interfaces.distribution import IDistributionSet
 
44
from lp.registry.interfaces.person import IPersonSet
 
45
from lp.services.worlddata.interfaces.language import ILanguageSet
50
46
from lp.testing.mail_helpers import pop_notifications
51
47
 
52
48
 
68
64
    validity.
69
65
    """
70
66
    from canonical.launchpad.database import EmailAddress
71
 
    from canonical.launchpad.interfaces import EmailAddressStatus
 
67
    from canonical.launchpad.interfaces.emailaddress import EmailAddressStatus
72
68
    stevea_emailaddress = EmailAddress.byEmail(
73
69
            'steve.alexander@ubuntulinux.com')
74
70
    stevea_emailaddress.status = EmailAddressStatus.NEW
360
356
        one_test = LayeredDocFileSuite(
361
357
            path, setUp=setUp, tearDown=tearDown,
362
358
            layer=LaunchpadFunctionalLayer,
363
 
            # 'icky way of running doctests with __future__ imports
364
 
            globs={'with_statement': with_statement},
365
359
            stdout_logging_level=logging.WARNING)
366
360
        suite.addTest(one_test)
367
361