Module Expr Str Import alias ImportFrom alias Import alias FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad Str body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list decorator_list Return NameLoad decorator_list
N/A N/A  Tools for having doctest and unittest work together more nicely.

    Eclipse's PyDev plugin will run your unittest files for you very nicely.
    The doctest_for_module function allows you to easily run the doctest for a
    module along side your standard unit tests within Eclipse.
 N/A doctest traits.testing.unittest_tools unittest N/A sys doctest_for_module N/A N/A module N/A N/A N/A  Create a TestCase from a module's doctests that will be run by the
        standard unittest.main().

        Example tests/test_foo.py::

            import unittest

            import foo
            from traits.testing.api import doctest_for_module

            class FooTestCase(unittest.TestCase):
                ...

            class FooDocTest(doctest_for_module(foo)):
                pass

            if __name__ == "__main__":
                # This will run and report both FooTestCase and the doctests in
                # module foo.
                unittest.main()

        Alternatively, you can say::

            FooDocTest = doctest_for_module(foo)

        instead of::

            class FooDocTest(doctest_for_module(foo)):
                pass
     C N/A N/A unittest TestCase N/A test_dummy N/A N/A self N/A N/A N/A N/A run N/A N/A self result N/A None N/A N/A N/A hasattr result result N/A N/A N/A N/A N/A N/A doctest DocTestSuite module run N/A result result N/A N/A N/A N/A N/A N/A doctest DocTestSuite module run result N/A N/A N/A C N/A