summaryrefslogtreecommitdiff
path: root/lib/testtools/testtools/tests/__init__.py
blob: 1b1aa38a1f9ec27112c6bf2af591280de3302f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""Tests for testtools itself."""

# See README for copyright and licensing details.

from unittest import TestSuite


def test_suite():
    from testtools.tests import (
        test_compat,
        test_content,
        test_content_type,
        test_deferredruntest,
        test_distutilscmd,
        test_fixturesupport,
        test_helpers,
        test_matchers,
        test_monkey,
        test_run,
        test_runtest,
        test_spinner,
        test_testcase,
        test_testresult,
        test_testsuite,
        )
    modules = [
        test_compat,
        test_content,
        test_content_type,
        test_deferredruntest,
        test_distutilscmd,
        test_fixturesupport,
        test_helpers,
        test_matchers,
        test_monkey,
        test_run,
        test_runtest,
        test_spinner,
        test_testcase,
        test_testresult,
        test_testsuite,
        ]
    suites = map(lambda x: x.test_suite(), modules)
    return TestSuite(suites)