testtools: Update to latest version.
[metze/samba/wip.git] / lib / 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     'ConcurrentTestSuite',
8     'ErrorHolder',
9     'ExpectedException',
10     'ExtendedToOriginalDecorator',
11     'FixtureSuite',
12     'iterate_tests',
13     'MultipleExceptions',
14     'MultiTestResult',
15     'PlaceHolder',
16     'run_test_with',
17     'Tagger',
18     'TestCase',
19     'TestCommand',
20     'TestByTestResult',
21     'TestResult',
22     'TestResultDecorator',
23     'TextTestResult',
24     'RunTest',
25     'skip',
26     'skipIf',
27     'skipUnless',
28     'ThreadsafeForwardingResult',
29     'try_import',
30     'try_imports',
31     ]
32
33 from testtools.helpers import (
34     try_import,
35     try_imports,
36     )
37 from testtools.matchers._impl import (
38     Matcher,
39     )
40 # Shut up, pyflakes. We are importing for documentation, not for namespacing.
41 Matcher
42
43 from testtools.runtest import (
44     MultipleExceptions,
45     RunTest,
46     )
47 from testtools.testcase import (
48     ErrorHolder,
49     ExpectedException,
50     PlaceHolder,
51     TestCase,
52     clone_test_with_new_id,
53     run_test_with,
54     skip,
55     skipIf,
56     skipUnless,
57     )
58 from testtools.testresult import (
59     ExtendedToOriginalDecorator,
60     MultiTestResult,
61     Tagger,
62     TestByTestResult,
63     TestResult,
64     TestResultDecorator,
65     TextTestResult,
66     ThreadsafeForwardingResult,
67     )
68 from testtools.testsuite import (
69     ConcurrentTestSuite,
70     FixtureSuite,
71     iterate_tests,
72     )
73 from testtools.distutilscmd import (
74     TestCommand,
75 )
76
77 # same format as sys.version_info: "A tuple containing the five components of
78 # the version number: major, minor, micro, releaselevel, and serial. All
79 # values except releaselevel are integers; the release level is 'alpha',
80 # 'beta', 'candidate', or 'final'. The version_info value corresponding to the
81 # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
82 # releaselevel of 'dev' for unreleased under-development code.
83 #
84 # If the releaselevel is 'alpha' then the major/minor/micro components are not
85 # established at this point, and setup.py will use a version of next-$(revno).
86 # If the releaselevel is 'final', then the tarball will be major.minor.micro.
87 # Otherwise it is major.minor.micro~$(revno).
88
89 __version__ = (0, 9, 22, 'dev', 0)