~launchpad-pqm/launchpad/devel

8687.15.18 by Karl Fogel
Add the copyright header block to files under lib/canonical/.
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3614.2.12 by Bjorn Tillenius
add tests for can_be_nominated_for_releases.
4
"""Tests for the validators."""
5
6
__metaclass__ = type
7
4453.1.1 by Guilherme Salgado
Make doc/person.txt conform with TestsStyleGuide and move some some tests to interface/ftests/validation.txt
8
import unittest
3614.2.12 by Bjorn Tillenius
add tests for can_be_nominated_for_releases.
9
14604.1.1 by Curtis Hovey
Separate test-authoring classes from test-running classes.
10
from lp.testing.layers import LaunchpadFunctionalLayer
14578.4.1 by William Grant
Move the remains of canonical.launchpad.testing to lp.testing.
11
from lp.testing.systemdocs import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
12
    LayeredDocFileSuite,
13
    setUp,
14
    tearDown,
15
    )
4453.1.1 by Guilherme Salgado
Make doc/person.txt conform with TestsStyleGuide and move some some tests to interface/ftests/validation.txt
16
3614.2.12 by Bjorn Tillenius
add tests for can_be_nominated_for_releases.
17
18
def test_suite():
4453.1.1 by Guilherme Salgado
Make doc/person.txt conform with TestsStyleGuide and move some some tests to interface/ftests/validation.txt
19
    suite = unittest.TestSuite()
5788.1.2 by James Henstridge
Fix up modules that were importing testing infrastructure from
20
    test = LayeredDocFileSuite(
4453.1.1 by Guilherme Salgado
Make doc/person.txt conform with TestsStyleGuide and move some some tests to interface/ftests/validation.txt
21
        'validation.txt', setUp=setUp, tearDown=tearDown,
22
        layer=LaunchpadFunctionalLayer)
23
    suite.addTest(test)
3614.2.12 by Bjorn Tillenius
add tests for can_be_nominated_for_releases.
24
    return suite
25
4453.1.1 by Guilherme Salgado
Make doc/person.txt conform with TestsStyleGuide and move some some tests to interface/ftests/validation.txt
26
27
if __name__ == '__main__':
28
    unittest.main()