Module ImportFrom alias ImportFrom alias identifier Import alias Import alias ImportFrom alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num With Call AttributeLoad NameLoad attr keyword ListLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr Str NameStore body With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign AttributeStore NameLoad attr Lambda arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num With Call AttributeLoad NameLoad attr keyword ListLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str TryExcept body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Pass With Call AttributeLoad NameLoad attr keyword ListLoad body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assert CompareNotIn Str NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr keyword ListLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore ListLoad Num Assert CompareIn Str NameLoad With Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad NameStore body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr keyword ListLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr UnaryOpNot NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list decorator_list FunctionDef arguments args defaults body ImportFrom alias Expr Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A util N/A util import_util N/A importlib._bootstrap N/A sys types MethodType N/A unittest N/A warnings CallingOrder N/A N/A unittest TestCase N/A N/A Calls to the importers on sys.meta_path happen in order that they are
    specified in the sequence, starting with the first importer
    [first called], and then continuing on down until one is found that doesn't
    return None [continuing]. test_first_called N/A N/A self N/A N/A N/A mod top_level N/A first N/A N/A util mock_modules mod N/A second N/A N/A util mock_modules mod N/A N/A N/A util mock_modules mod first N/A N/A N/A N/A util mock_modules mod second N/A N/A N/A N/A first modules N/A mod 42 N/A N/A N/A second modules N/A mod -13 N/A N/A N/A util import_state meta_path N/A first second N/A N/A N/A N/A self assertEqual N/A N/A import_util import_ mod 42 N/A test_continuing N/A N/A self N/A N/A N/A mod_name for_real N/A N/A N/A util mock_modules nonexistent first N/A N/A N/A N/A util mock_modules mod_name second N/A N/A N/A first find_module N/A N/A N/A self fullname path N/A None None N/A N/A N/A second modules N/A mod_name 42 N/A N/A N/A util import_state meta_path N/A first second N/A N/A N/A N/A self assertEqual N/A N/A import_util import_ mod_name 42 N/A test_empty N/A N/A self N/A N/A N/A module_name nothing N/A N/A N/A N/A N/A sys modules N/A module_name N/A N/A N/A KeyError N/A N/A N/A N/A N/A util import_state meta_path N/A N/A N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A N/A N/A self assertIsNone N/A N/A N/A importlib _bootstrap _find_module nothing None N/A N/A N/A self assertEqual N/A len w 1 N/A N/A N/A self assertTrue N/A issubclass N/A N/A w N/A -1 category ImportWarning N/A N/A CallSignature N/A N/A unittest TestCase N/A N/A If there is no __path__ entry on the parent module, then 'path' is None
    [no path]. Otherwise, the value for __path__ is passed in for the 'path'
    argument [path set]. log N/A N/A self fxn N/A N/A N/A log N/A wrapper N/A N/A self N/A args kwargs N/A N/A N/A N/A log append N/A args kwargs N/A N/A fxn args kwargs N/A N/A N/A log wrapper N/A test_no_path N/A N/A self N/A N/A N/A mod_name top_level N/A N/A . mod_name N/A N/A N/A util mock_modules mod_name importer N/A N/A N/A log wrapped_call N/A N/A self log N/A importer find_module N/A N/A importer find_module N/A MethodType wrapped_call importer N/A N/A N/A util import_state meta_path N/A importer N/A N/A N/A N/A import_util import_ mod_name N/A N/A N/A len log 1 N/A args N/A N/A log N/A 0 N/A 0 N/A kwargs N/A N/A log N/A 0 N/A 1 N/A N/A N/A self assertEqual N/A len args 2 N/A N/A N/A self assertEqual N/A len kwargs 0 N/A N/A N/A self assertEqual N/A args N/A 0 mod_name N/A N/A N/A self assertIsNone N/A args N/A 1 N/A test_with_path N/A N/A self N/A N/A N/A pkg_name pkg N/A mod_name N/A pkg_name .module N/A path N/A 42 N/A N/A . mod_name N/A N/A N/A util mock_modules N/A pkg_name .__init__ mod_name importer N/A N/A N/A N/A N/A importer modules N/A pkg_name __path__ path N/A N/A log wrapped_call N/A N/A self log N/A importer find_module N/A N/A importer find_module N/A MethodType wrapped_call importer N/A N/A N/A util import_state meta_path N/A importer N/A N/A N/A N/A import_util import_ mod_name N/A N/A N/A len log 2 N/A args N/A N/A log N/A 1 N/A 0 N/A kwargs N/A N/A log N/A 1 N/A 1 N/A N/A N/A self assertTrue N/A kwargs N/A N/A N/A self assertEqual N/A args N/A 0 mod_name N/A N/A N/A self assertIs N/A args N/A 1 path N/A N/A test_main N/A N/A N/A N/A test.support run_unittest N/A N/A run_unittest CallingOrder CallSignature N/A N/A N/A __name__ __main__ N/A N/A N/A test_main