testtools: Fix included testtools, for systems that don't have it.
[nivanova/samba-autobuild/.git] / lib / testtools / testtools / tests / __init__.py
1 """Tests for testtools itself."""
2
3 # See README for copyright and licensing details.
4
5 import unittest
6 from testtools.tests import (
7     test_content,
8     test_content_type,
9     test_matchers,
10     test_runtest,
11     test_testtools,
12     test_testresult,
13     test_testsuite,
14     )
15
16
17 def test_suite():
18     suites = []
19     modules = [
20         test_content,
21         test_content_type,
22         test_matchers,
23         test_runtest,
24         test_testresult,
25         test_testsuite,
26         test_testtools,
27         ]
28     for module in modules:
29         suites.append(getattr(module, 'test_suite')())
30     return unittest.TestSuite(suites)