~launchpad-pqm/launchpad/devel

8687.15.17 by Karl Fogel
Add the copyright header block to the rest of the files under lib/lp/.
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
2354 by Canonical.com Patch Queue Manager
[r=bjornt] Product and Project vocabularies should not contain inactive entries. Bug#1873
3
4
__metaclass__ = type
5
11128.2.1 by Jonathan Lange
Do not use z.testing.doctest, it is deprecated.
6
from doctest import DocTestSuite
7
2354 by Canonical.com Patch Queue Manager
[r=bjornt] Product and Project vocabularies should not contain inactive entries. Bug#1873
8
from zope.component import getUtility
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
9
10
from canonical.launchpad.ftests import (
11
    ANONYMOUS,
12
    login,
13
    )
3691.57.49 by Stuart Bishop
Merge from Rocketfuel
14
from canonical.testing.layers import LaunchpadFunctionalLayer
2354 by Canonical.com Patch Queue Manager
[r=bjornt] Product and Project vocabularies should not contain inactive entries. Bug#1873
15
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
16
2354 by Canonical.com Patch Queue Manager
[r=bjornt] Product and Project vocabularies should not contain inactive entries. Bug#1873
17
def setUp(test):
18
    test.globs['getUtility'] = getUtility
19
    login(ANONYMOUS)
20
21
def test_suite():
10724.1.5 by Henning Eggers
Foreign keys for ProjectGroup.
22
    suite = DocTestSuite('lp.registry.model.projectgroup', setUp=setUp)
3691.57.49 by Stuart Bishop
Merge from Rocketfuel
23
    suite.layer = LaunchpadFunctionalLayer
2976.10.65 by Stuart Bishop
Fix tests
24
    return suite