Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Import alias Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Assign AttributeStore NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list
N/A N/A os N/A sys zipimport zipimporter django.utils unittest django.utils.importlib import_module django.utils.module_loading module_has_submodule DefaultLoader N/A N/A unittest TestCase N/A test_loader N/A N/A self N/A N/A N/A Normal module existence can be tested N/A test_module N/A import_module regressiontests.utils.test_module N/A N/A N/A self assertTrue N/A module_has_submodule test_module good_module N/A mod N/A import_module regressiontests.utils.test_module.good_module N/A N/A N/A self assertEqual N/A mod content Good Module N/A N/A N/A self assertTrue N/A module_has_submodule test_module bad_module N/A N/A N/A self assertRaises ImportError import_module regressiontests.utils.test_module.bad_module N/A N/A N/A self assertFalse N/A module_has_submodule test_module no_such_module N/A N/A N/A self assertRaises ImportError import_module regressiontests.utils.test_module.no_such_module N/A types N/A N/A N/A self assertFalse N/A module_has_submodule N/A N/A sys modules N/A regressiontests.utils types N/A N/A EggLoader N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self old_path N/A N/A sys path N/A N/A N/A self egg_dir N/A %s/eggs N/A N/A N/A os path dirname __file__ N/A tearDown N/A N/A self N/A N/A N/A N/A sys path N/A self old_path N/A N/A N/A N/A sys path_importer_cache clear N/A N/A N/A N/A sys modules pop egg_module.sub1.sub2.bad_module None N/A N/A N/A N/A sys modules pop egg_module.sub1.sub2.good_module None N/A N/A N/A N/A sys modules pop egg_module.sub1.sub2 None N/A N/A N/A N/A sys modules pop egg_module.sub1 None N/A N/A N/A N/A sys modules pop egg_module.bad_module None N/A N/A N/A N/A sys modules pop egg_module.good_module None N/A N/A N/A N/A sys modules pop egg_module None N/A test_shallow_loader N/A N/A self N/A N/A N/A Module existence can be tested inside eggs N/A egg_name N/A %s/test_egg.egg N/A self egg_dir N/A N/A N/A N/A sys path append egg_name N/A egg_module N/A import_module egg_module N/A N/A N/A self assertTrue N/A module_has_submodule egg_module good_module N/A mod N/A import_module egg_module.good_module N/A N/A N/A self assertEqual N/A mod content Good Module N/A N/A N/A self assertTrue N/A module_has_submodule egg_module bad_module N/A N/A N/A self assertRaises ImportError import_module egg_module.bad_module N/A N/A N/A self assertFalse N/A module_has_submodule egg_module no_such_module N/A N/A N/A self assertRaises ImportError import_module egg_module.no_such_module N/A test_deep_loader N/A N/A self N/A N/A N/A Modules deep inside an egg can still be tested for existence N/A egg_name N/A %s/test_egg.egg N/A self egg_dir N/A N/A N/A N/A sys path append egg_name N/A egg_module N/A import_module egg_module.sub1.sub2 N/A N/A N/A self assertTrue N/A module_has_submodule egg_module good_module N/A mod N/A import_module egg_module.sub1.sub2.good_module N/A N/A N/A self assertEqual N/A mod content Deep Good Module N/A N/A N/A self assertTrue N/A module_has_submodule egg_module bad_module N/A N/A N/A self assertRaises ImportError import_module egg_module.sub1.sub2.bad_module N/A N/A N/A self assertFalse N/A module_has_submodule egg_module no_such_module N/A N/A N/A self assertRaises ImportError import_module egg_module.sub1.sub2.no_such_module N/A N/A TestFinder N/A object N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A self importer N/A zipimporter args kwargs N/A find_module N/A N/A self path N/A N/A N/A importer N/A N/A N/A self importer find_module path N/A N/A importer None N/A N/A N/A N/A TestLoader importer N/A N/A TestLoader N/A object N/A __init__ N/A N/A self importer N/A N/A N/A N/A self importer importer N/A load_module N/A N/A self name N/A N/A N/A mod N/A N/A N/A self importer load_module name N/A N/A mod __loader__ self N/A mod N/A N/A CustomLoader N/A EggLoader N/A N/A The Custom Loader test is exactly the same as the EggLoader, but
    it uses a custom defined Loader and Finder that is intentionally
    split into two classes. Although the EggLoader combines both functions
    into one class, this isn't required.
     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super CustomLoader self setUp N/A N/A N/A N/A sys path_hooks insert 0 TestFinder N/A N/A N/A N/A sys path_importer_cache clear N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super CustomLoader self tearDown N/A N/A N/A N/A sys path_hooks pop 0 N/A N/A