Release 1.0.0.
[third_party/testtools] / testtools / __init__.py
1 # Copyright (c) 2008-2012 testtools developers. See LICENSE for details.
2
3 """Extensions to the standard Python unittest library."""
4
5 __all__ = [
6     'clone_test_with_new_id',
7     'CopyStreamResult',
8     'ConcurrentTestSuite',
9     'ConcurrentStreamTestSuite',
10     'DecorateTestCaseResult',
11     'ErrorHolder',
12     'ExpectedException',
13     'ExtendedToOriginalDecorator',
14     'ExtendedToStreamDecorator',
15     'FixtureSuite',
16     'iterate_tests',
17     'MultipleExceptions',
18     'MultiTestResult',
19     'PlaceHolder',
20     'run_test_with',
21     'Tagger',
22     'TestCase',
23     'TestCommand',
24     'TestByTestResult',
25     'TestResult',
26     'TestResultDecorator',
27     'TextTestResult',
28     'RunTest',
29     'skip',
30     'skipIf',
31     'skipUnless',
32     'StreamFailFast',
33     'StreamResult',
34     'StreamResultRouter',
35     'StreamSummary',
36     'StreamTagger',
37     'StreamToDict',
38     'StreamToExtendedDecorator',
39     'StreamToQueue',
40     'TestControl',
41     'ThreadsafeForwardingResult',
42     'TimestampingStreamResult',
43     'try_import',
44     'try_imports',
45     ]
46
47 # Compat - removal announced in 0.9.25.
48 try:
49     from extras import (
50         try_import,
51         try_imports,
52         )
53 except ImportError:
54     # Support reading __init__ for __version__ without extras, because pip does
55     # not support setup_requires.
56     pass
57 else:
58
59     from testtools.matchers._impl import (
60         Matcher,
61         )
62 # Shut up, pyflakes. We are importing for documentation, not for namespacing.
63     Matcher
64
65     from testtools.runtest import (
66         MultipleExceptions,
67         RunTest,
68         )
69     from testtools.testcase import (
70         DecorateTestCaseResult,
71         ErrorHolder,
72         ExpectedException,
73         PlaceHolder,
74         TestCase,
75         clone_test_with_new_id,
76         run_test_with,
77         skip,
78         skipIf,
79         skipUnless,
80         )
81     from testtools.testresult import (
82         CopyStreamResult,
83         ExtendedToOriginalDecorator,
84         ExtendedToStreamDecorator,
85         MultiTestResult,
86         StreamFailFast,
87         StreamResult,
88         StreamResultRouter,
89         StreamSummary,
90         StreamTagger,
91         StreamToDict,
92         StreamToExtendedDecorator,
93         StreamToQueue,
94         Tagger,
95         TestByTestResult,
96         TestControl,
97         TestResult,
98         TestResultDecorator,
99         TextTestResult,
100         ThreadsafeForwardingResult,
101         TimestampingStreamResult,
102         )
103     from testtools.testsuite import (
104         ConcurrentTestSuite,
105         ConcurrentStreamTestSuite,
106         FixtureSuite,
107         iterate_tests,
108         )
109     from testtools.distutilscmd import (
110         TestCommand,
111         )
112
113 # same format as sys.version_info: "A tuple containing the five components of
114 # the version number: major, minor, micro, releaselevel, and serial. All
115 # values except releaselevel are integers; the release level is 'alpha',
116 # 'beta', 'candidate', or 'final'. The version_info value corresponding to the
117 # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
118 # releaselevel of 'dev' for unreleased under-development code.
119 #
120 # If the releaselevel is 'alpha' then the major/minor/micro components are not
121 # established at this point, and setup.py will use a version of next-$(revno).
122 # If the releaselevel is 'final', then the tarball will be major.minor.micro.
123 # Otherwise it is major.minor.micro~$(revno).
124
125 __version__ = (1, 0, 0, 'final', 0)