Module Import alias alias alias alias alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Str While Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Str body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Raise NameLoad Str Expr Call AttributeLoad NameLoad attr BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr UnaryOpNot Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Str Assign NameStore Str While CompareIn NameLoad Call NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Raise NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num decorator_list decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A os sys string random tempfile unittest test.test_support run_unittest TestImport N/A N/A unittest TestCase N/A __init__ N/A N/A self N/A args kw N/A N/A N/A self package_name PACKAGE_ N/A N/A N/A N/A sys modules has_key N/A self package_name N/A N/A N/A self package_name N/A N/A random choose N/A string letters N/A N/A self module_name N/A N/A self package_name .foo N/A N/A N/A N/A unittest TestCase __init__ self args kw N/A remove_modules N/A N/A self N/A N/A N/A module_name N/A N/A self package_name N/A self module_name N/A N/A N/A N/A N/A sys modules has_key module_name N/A N/A N/A N/A sys modules N/A module_name N/A setUp N/A N/A self N/A N/A N/A N/A self test_dir N/A N/A tempfile mkdtemp N/A N/A N/A N/A sys path append N/A self test_dir N/A N/A self package_dir N/A N/A N/A os path join N/A self test_dir N/A self package_name N/A N/A N/A os mkdir N/A self package_dir N/A N/A open N/A N/A N/A os path join N/A self package_dir N/A N/A __init__ N/A os extsep py w N/A N/A self module_path N/A N/A N/A os path join N/A self package_dir N/A N/A foo N/A os extsep py N/A tearDown N/A N/A self N/A N/A N/A file N/A N/A os listdir N/A self package_dir N/A N/A N/A N/A os remove N/A N/A N/A os path join N/A self package_dir file N/A N/A N/A os rmdir N/A self package_dir N/A N/A N/A os rmdir N/A self test_dir N/A N/A N/A self assertNotEqual N/A N/A N/A sys path count N/A self test_dir 0 N/A N/A N/A N/A sys path remove N/A self test_dir N/A N/A N/A self remove_modules N/A rewrite_file N/A N/A self contents N/A N/A N/A extension co N/A N/A compiled_path N/A N/A self module_path extension N/A N/A N/A N/A os path exists compiled_path N/A N/A N/A N/A os remove compiled_path N/A f N/A open N/A self module_path w N/A N/A N/A f write contents N/A N/A N/A f close N/A test_package_import__semantics N/A N/A self N/A N/A N/A N/A N/A self rewrite_file for N/A N/A N/A N/A __import__ N/A self module_name N/A N/A N/A SyntaxError N/A N/A N/A N/A RuntimeError Failed to induce SyntaxError N/A N/A N/A self assert_ N/A N/A N/A N/A N/A sys modules has_key N/A self module_name N/A N/A hasattr N/A N/A sys modules N/A N/A self package_name foo N/A var a N/A N/A var N/A dir __builtins__ N/A N/A var N/A N/A random choose N/A string letters N/A N/A N/A self rewrite_file var N/A N/A N/A N/A __import__ N/A self module_name N/A N/A N/A NameError N/A N/A N/A N/A RuntimeError Failed to induce NameError. N/A N/A N/A self rewrite_file N/A %s = 1 var N/A module N/A N/A __import__ N/A self module_name foo N/A N/A N/A self assertEqual N/A getattr module var 1 N/A N/A test_main N/A N/A N/A N/A N/A N/A run_unittest TestImport N/A N/A N/A __name__ __main__ N/A N/A N/A test_main