~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 2009 Canonical Ltd.  This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).

"""Run the doc string tests."""

import doctest
from doctest import (
    NORMALIZE_WHITESPACE,
    ELLIPSIS,
    )

from canonical.launchpad.testing.systemdocs import LayeredDocFileSuite
from canonical.testing.layers import BaseLayer
from lp import testing


def test_suite():
    suite = LayeredDocFileSuite(
        layer=BaseLayer)
    suite.addTest(doctest.DocTestSuite(
        testing, optionflags=NORMALIZE_WHITESPACE|ELLIPSIS))
    return suite