1
# Copyright 2009 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
12
from canonical.launchpad.testing.systemdocs import (
13
LayeredDocFileSuite, setUp, tearDown)
14
from canonical.testing import LaunchpadFunctionalLayer
17
here = os.path.dirname(os.path.realpath(__file__))
21
suite = unittest.TestSuite()
22
testsdir = os.path.abspath(here)
24
# Add tests using default setup/teardown
26
for filename in os.listdir(testsdir)
27
if filename.endswith('.txt')]
28
# Sort the list to give a predictable order.
30
for filename in filenames:
32
one_test = LayeredDocFileSuite(
33
path, setUp=setUp, tearDown=tearDown,
34
layer=LaunchpadFunctionalLayer,
35
stdout_logging_level=logging.WARNING
37
suite.addTest(one_test)