Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Dict Str Str Str Num NameLoad NameLoad If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad NameLoad NameLoad If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body TryExcept body ImportFrom alias Expr Call NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str If Call NameLoad GeneratorExp CompareIn NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias ImportFrom alias alias TryExcept body ImportFrom alias Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore ListLoad Assign NameStore IfExp SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr For NameStore NameLoad body TryExcept body If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body If SubscriptLoad AttributeLoad NameLoad attr Index Str body TryExcept body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Assign NameStore NameLoad While NameLoad body TryExcept body If SubscriptLoad AttributeLoad NameLoad attr Index Str body TryExcept body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Break handlers ExceptHandler type NameLoad body Raise ExceptHandler type NameLoad name NameStore body If CompareNotEq NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias TryExcept body Assign NameStore Call NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Dict For NameStore Call NameLoad NameLoad body If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore CompareNotIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore ListLoad If BoolOpOr NameLoad NameLoad body If NameLoad body For NameStore NameLoad body If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore CompareNotIn Str AttributeLoad NameLoad attr If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A argparse N/A django N/A pep8 N/A sys N/A time N/A traceback N/A unittest coverage coverage misc distutils log django.utils.six StringIO LabelException N/A Exception N/A N/A N/A SetupTestSuite N/A N/A unittest TestSuite N/A N/A 
    Test Suite configuring Django settings and using
    DiscoverRunner or DjangoTestSuiteRunner as the test runner.
    Also runs PEP8 and Coverage checks.
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A self cov N/A coverage N/A N/A N/A N/A self cov start N/A N/A N/A self configure N/A N/A self packages N/A N/A self resolve_packages N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument -a --autoreload dest autoreload action store_const const True default False N/A N/A N/A parser add_argument -f --failfast dest failfast action store_const const True default False N/A N/A N/A parser add_argument -l --label dest label N/A N/A self options N/A vars N/A N/A parser parse_args N/A N/A sys argv N/A 2 N/A N/A sys argv N/A N/A sys argv N/A 2 N/A runner_options N/A verbosity interactive failfast 1 True False N/A N/A N/A django VERSION N/A 1 8 N/A django.test.runner DiscoverRunner N/A N/A self test_runner N/A DiscoverRunner runner_options N/A tests N/A N/A N/A self test_runner build_suite N/A django.test.simple DjangoTestSuiteRunner N/A N/A self test_runner N/A DjangoTestSuiteRunner runner_options N/A tests N/A N/A self build_tests N/A N/A N/A N/A super SetupTestSuite self __init__ tests tests args kwargs N/A N/A N/A django VERSION N/A 1 7 N/A N/A N/A south.management.commands patch_for_test_db_setup N/A N/A patch_for_test_db_setup N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A self test_runner setup_test_environment N/A N/A self old_config N/A N/A N/A self test_runner setup_databases N/A handle_label_exception N/A N/A self exception N/A N/A N/A 
        Check whether or not the exception was caused due to a bad label
        being provided. If so raise LabelException which will cause an exit,
        otherwise continue.

        The check looks for particular error messages, which obviously sucks.
        TODO: Implement a cleaner test.
         N/A markers N/A no such test method should be of the form app.TestCase or app.TestCase.test_method App with label does not refer to a test N/A N/A any N/A N/A marker N/A exception message N/A marker markers N/A N/A N/A N/A log info exception N/A N/A LabelException exception N/A N/A exception N/A build_tests N/A N/A self N/A N/A N/A 
        Build tests for inclusion in suite from resolved packages for <= 1.8
        TODO: Cleanup/simplify this method, flow too complex,
        too much duplication.
         django.core.exceptions ImproperlyConfigured django.test.simple build_suite build_test N/A N/A django.apps apps N/A get_app N/A apps get_app_config N/A N/A N/A ImportError N/A django.db.models get_app N/A tests N/A N/A packages N/A N/A N/A self options N/A label N/A N/A N/A self options N/A label N/A self packages N/A package packages N/A N/A N/A N/A N/A N/A N/A self options N/A autoreload N/A N/A N/A N/A self options N/A label N/A N/A N/A N/A N/A N/A tests append N/A build_test package N/A N/A N/A N/A ImproperlyConfigured ValueError N/A e N/A N/A N/A N/A self handle_label_exception e N/A N/A app N/A get_app package N/A N/A N/A tests append N/A build_suite app N/A N/A exception None N/A True N/A N/A N/A N/A N/A N/A self options N/A label N/A N/A N/A N/A N/A N/A tests append N/A build_test package N/A N/A N/A N/A ImproperlyConfigured ValueError N/A e N/A N/A N/A N/A self handle_label_exception e N/A N/A app N/A get_app package N/A N/A N/A tests append N/A build_suite app N/A N/A N/A N/A LabelException N/A N/A N/A N/A Exception N/A e N/A N/A N/A exception N/A str e N/A N/A N/A N/A traceback print_exc N/A exception N/A str e N/A N/A N/A time sleep 1 N/A N/A N/A ImproperlyConfigured N/A e N/A N/A N/A N/A log info N/A Warning: %s N/A N/A traceback format_exc N/A N/A ImportError N/A e N/A N/A N/A N/A log info N/A Warning: %s N/A N/A traceback format_exc N/A tests N/A configure N/A N/A self N/A N/A N/A 
        Configures Django settings.
         N/A django django.conf settings N/A N/A django.utils.importlib import_module N/A N/A N/A ImportError N/A importlib import_module N/A N/A N/A test_settings N/A import_module test_settings N/A N/A N/A ImportError N/A e N/A N/A N/A N/A log info N/A ImportError: Unable to import test settings: %s e N/A N/A N/A sys exit 1 N/A setting_attrs N/A N/A attr N/A dir test_settings N/A N/A N/A __ attr N/A N/A N/A setting_attrs N/A attr N/A getattr test_settings attr N/A N/A N/A settings configured N/A N/A N/A N/A settings configure setting_attrs N/A N/A hasattr django setup N/A N/A N/A N/A django setup N/A coverage_report N/A N/A self N/A N/A N/A 
        Outputs Coverage report to screen and coverage.xml.
         N/A verbose N/A --quiet N/A sys argv N/A N/A N/A N/A self cov stop N/A verbose N/A N/A N/A N/A log info 
Coverage Report: N/A N/A N/A include N/A N/A %s* package N/A package N/A self packages N/A omit N/A *tests* N/A N/A N/A N/A self cov report include include omit omit N/A N/A N/A N/A self cov save N/A N/A N/A N/A self cov xml_report include include omit omit N/A N/A N/A N/A misc CoverageException N/A e N/A N/A N/A N/A log info N/A Coverage Exception: %s e N/A resolve_packages N/A N/A self N/A N/A N/A 
        Frame hack to determine packages contained in module for testing.
        We ignore submodules (those containing '.')
         N/A f N/A N/A sys _getframe N/A f N/A N/A N/A self N/A f f_locals N/A N/A locals_self N/A N/A f f_locals N/A self N/A py_modules N/A getattr locals_self py_modules None N/A packages N/A getattr locals_self packages None N/A top_packages N/A N/A N/A py_modules packages N/A N/A py_modules N/A N/A module py_modules N/A N/A N/A . module N/A N/A N/A N/A top_packages append module N/A packages N/A N/A package packages N/A N/A N/A . package N/A N/A N/A N/A top_packages append package N/A N/A list N/A set top_packages N/A f N/A f f_back N/A pep8_report N/A N/A self N/A N/A N/A 
        Outputs PEP8 report to screen and pep8.txt.
         N/A verbose N/A --quiet N/A sys argv N/A verbose N/A N/A old_stdout N/A sys stdout N/A N/A sys stdout mystdout N/A StringIO N/A pep8_style N/A N/A pep8 StyleGuide N/A N/A N/A N/A N/A pep8_style options exclude append migrations N/A N/A N/A N/A N/A pep8_style options exclude append south_migrations N/A N/A N/A pep8_style check_files N/A self packages N/A N/A sys stdout old_stdout N/A result N/A N/A mystdout getvalue N/A output N/A open pep8.txt w N/A N/A N/A output write result N/A N/A N/A output close N/A result N/A N/A N/A N/A log info 
PEP8 Report: N/A N/A N/A log info result N/A run N/A N/A self result N/A args kwargs N/A N/A 
        Run the test, teardown the environment and generate reports.
         N/A N/A result failfast N/A N/A self options N/A failfast N/A result N/A N/A N/A super SetupTestSuite self run result args kwargs N/A N/A N/A N/A self test_runner teardown_databases N/A self old_config N/A N/A N/A N/A self test_runner teardown_test_environment N/A N/A N/A self coverage_report N/A N/A N/A self pep8_report N/A result N/A N/A