~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/tests/test_bugtask.py

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from zope.interface import providedBy
18
18
from zope.security.proxy import removeSecurityProxy
19
19
 
20
 
from canonical.database.sqlbase import flush_database_updates
21
 
from canonical.launchpad.searchbuilder import (
22
 
    all,
23
 
    any,
24
 
    not_equals,
25
 
    )
26
 
from canonical.launchpad.webapp.authorization import check_permission
27
 
from canonical.launchpad.webapp.interfaces import ILaunchBag
28
 
from canonical.testing.layers import (
29
 
    AppServerLayer,
30
 
    DatabaseFunctionalLayer,
31
 
    LaunchpadZopelessLayer,
32
 
    )
33
20
from lp.app.enums import ServiceUsage
34
21
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
35
22
from lp.bugs.interfaces.bug import IBugSet
51
38
    BugTask,
52
39
    BugTaskSet,
53
40
    build_tag_search_clause,
 
41
    get_bug_privacy_filter,
54
42
    IllegalTarget,
55
43
    validate_new_target,
56
44
    validate_target,
57
 
    get_bug_privacy_filter)
 
45
    )
58
46
from lp.bugs.tests.bug import create_old_bug
59
47
from lp.hardwaredb.interfaces.hwdb import (
60
48
    HWBus,
68
56
    )
69
57
from lp.registry.interfaces.product import IProductSet
70
58
from lp.registry.interfaces.projectgroup import IProjectGroupSet
 
59
from lp.services.database.sqlbase import flush_database_updates
71
60
from lp.services.features.testing import FeatureFixture
 
61
from lp.services.searchbuilder import (
 
62
    all,
 
63
    any,
 
64
    not_equals,
 
65
    )
 
66
from lp.services.webapp.authorization import check_permission
 
67
from lp.services.webapp.interfaces import ILaunchBag
72
68
from lp.soyuz.interfaces.archive import ArchivePurpose
73
69
from lp.testing import (
74
70
    ANONYMOUS,
88
84
    )
89
85
from lp.testing.factory import LaunchpadObjectFactory
90
86
from lp.testing.fakemethod import FakeMethod
 
87
from lp.testing.layers import (
 
88
    AppServerLayer,
 
89
    DatabaseFunctionalLayer,
 
90
    LaunchpadZopelessLayer,
 
91
    )
91
92
from lp.testing.matchers import HasQueryCount
92
93
 
93
94