Put testtools directly under lib/ to make it easier to install from Samba 4.
[nivanova/samba-autobuild/.git] / lib / testtools / tests / __init__.py
diff --git a/lib/testtools/tests/__init__.py b/lib/testtools/tests/__init__.py
new file mode 100644 (file)
index 0000000..2cceba9
--- /dev/null
@@ -0,0 +1,30 @@
+"""Tests for testtools itself."""
+
+# See README for copyright and licensing details.
+
+import unittest
+from testtools.tests import (
+    test_content,
+    test_content_type,
+    test_matchers,
+    test_runtest,
+    test_testtools,
+    test_testresult,
+    test_testsuite,
+    )
+
+
+def test_suite():
+    suites = []
+    modules = [
+        test_content,
+        test_content_type,
+        test_matchers,
+        test_runtest,
+        test_testresult,
+        test_testsuite,
+        test_testtools,
+        ]
+    for module in modules:
+        suites.append(getattr(module, 'test_suite')())
+    return unittest.TestSuite(suites)