Module Import alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Dict Str Dict Str Dict Str Dict Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A glob N/A os N/A shutil N/A mockfs MockFSTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mfs N/A N/A mockfs replace_builtins N/A tearDown N/A N/A self N/A N/A N/A N/A N/A mockfs restore_builtins N/A _mkfs N/A N/A self N/A N/A N/A filesystem N/A /a/a/a /a/a/b /a/b/a /a/b/b /b/a/a /b/a/b /b/b/a /b/b/b N/A N/A N/A N/A N/A N/A N/A N/A self mfs add_entries filesystem N/A test_empty N/A N/A self N/A N/A N/A Test an empty filesystem N/A N/A N/A self assertFalse N/A N/A N/A os path exists / N/A test_first_level_subdir N/A N/A self N/A N/A N/A Test files at the root of the filesystem N/A N/A N/A N/A self mfs add_entries N/A /foo bar N/A N/A N/A self assertTrue N/A N/A N/A os path exists / N/A N/A N/A self assertTrue N/A N/A N/A os path isdir / N/A N/A N/A self assertTrue N/A N/A N/A os path exists /foo N/A test_nested_directories N/A N/A self N/A N/A N/A Test files in subdirectories. N/A filesystem N/A /a/a/a /a/a/b /a/b/a /a/b/b /b/a/a /b/a/b /b/b/a /b/b/b N/A N/A N/A N/A self mfs add_entries filesystem N/A path filesystem N/A N/A N/A N/A self assertTrue N/A N/A N/A os path isdir N/A N/A N/A os path dirname path N/A N/A N/A self assertTrue N/A N/A N/A os path exists path N/A N/A N/A self assertTrue N/A N/A N/A os path isfile path N/A test_unsanitized_entries N/A N/A self N/A N/A N/A Test add_entries() with unsantized paths N/A N/A N/A N/A self mfs add_entries N/A ///just////another////pythonista N/A N/A N/A self assertTrue N/A N/A N/A os path isdir /just N/A N/A N/A self assertTrue N/A N/A N/A os path isdir /just/another N/A N/A N/A self assertTrue N/A N/A N/A os path exists /just/another/pythonista N/A N/A N/A self assertTrue N/A N/A N/A os path isfile /just/another/pythonista N/A test_predicates_on_unsanitized_paths N/A N/A self N/A N/A N/A Test isdir(), isfile() and exists() on unsanitized paths N/A N/A N/A N/A self mfs add_entries N/A /just/another/pythonista N/A N/A N/A self assertTrue N/A N/A N/A os path isdir ///just N/A N/A N/A self assertTrue N/A N/A N/A os path isdir ///just/////another N/A N/A N/A self assertTrue N/A N/A N/A os path exists ///just////another////////pythonista N/A N/A N/A self assertTrue N/A N/A N/A os path isfile ///just////another////////pythonista N/A test_os_remove N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b /a/c N/A N/A N/A N/A self mfs add_entries filesystem N/A N/A N/A self assertTrue N/A N/A N/A os path isfile /a/a N/A N/A N/A self assertTrue N/A N/A N/A os path isfile /a/b N/A N/A N/A self assertTrue N/A N/A N/A os path isfile /a/c N/A N/A N/A os remove /a/a N/A N/A N/A self assertFalse N/A N/A N/A os path isfile /a/a N/A N/A N/A os remove /a/c N/A N/A N/A self assertFalse N/A N/A N/A os path isfile /a/c N/A N/A N/A os remove /a/b N/A N/A N/A self assertFalse N/A N/A N/A os path isfile /a/b N/A N/A N/A self assertEqual N/A N/A os listdir /a N/A N/A test_os_remove_does_not_exist N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b /a/c N/A N/A N/A N/A self mfs add_entries filesystem N/A N/A N/A self assertRaises OSError N/A os remove /a/does-not-exist N/A test_os_remove_dir N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A self assertRaises OSError N/A os remove /a N/A test_remove_from_subdir N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os chdir /a/a N/A N/A N/A os remove b N/A entries N/A N/A os listdir /a/a N/A N/A N/A self assertEqual entries N/A a N/A entries N/A N/A os listdir . N/A N/A N/A self assertEqual entries N/A a N/A test_os_rmdir N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b /a/c N/A N/A N/A N/A self mfs add_entries filesystem N/A N/A N/A self assertRaises OSError N/A os rmdir /a N/A N/A N/A os remove /a/a N/A N/A N/A os remove /a/c N/A N/A N/A os remove /a/b N/A N/A N/A os rmdir /a N/A N/A N/A self assertFalse N/A N/A N/A os path isdir /a N/A test_os_rmdir_file N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A self assertRaises OSError N/A os rmdir /a/a/b N/A test_os_rmdir_nonempty N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os remove /a/a/b N/A N/A N/A self assertRaises OSError N/A os rmdir /a/a N/A N/A N/A os rmdir /a/b/a N/A N/A N/A self assertRaises OSError N/A os rmdir /a/b N/A test_os_makedirs N/A N/A self N/A N/A N/A N/A N/A os makedirs /foo/bar/baz N/A N/A N/A self assertTrue N/A N/A N/A os path isdir / N/A N/A N/A self assertTrue N/A N/A N/A os path isdir /foo N/A N/A N/A self assertTrue N/A N/A N/A os path isdir /foo/bar N/A N/A N/A self assertTrue N/A N/A N/A os path isdir /foo/bar/baz N/A test_glob_head N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A values N/A N/A glob glob /*/a/a N/A N/A N/A self assertEqual values N/A /a/a/a /b/a/a N/A test_glob_mid N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A values N/A N/A glob glob /a/*/a N/A N/A N/A self assertEqual values N/A /a/a/a /a/b/a N/A test_glob_tail N/A N/A self N/A N/A N/A Test files in subdirectories. N/A N/A N/A self _mkfs N/A values N/A N/A glob glob /a/a/* N/A N/A N/A self assertEqual values N/A /a/a/a /a/a/b N/A test_glob_multi N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A values N/A N/A glob glob /*/a/* N/A N/A N/A self assertEquals values N/A /a/a/a /a/a/b /b/a/a /b/a/b N/A test_chdir N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os chdir /a/a/a N/A N/A N/A self assertEqual N/A N/A os getcwd /a/a/a N/A test_chdir_file N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A self assertRaises OSError N/A os chdir /a/a/b N/A test_chdir_bogus N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A self assertRaises OSError N/A os chdir /does/not/exist N/A test_cwd N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os chdir /a N/A N/A N/A self assertEqual N/A N/A os getcwd /a N/A test_cwd_rogue N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os chdir /////a///// N/A N/A N/A self assertEqual N/A N/A os getcwd /a N/A test_chdir_and_relative_glob_from_root N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os chdir / N/A globs N/A N/A glob glob a/*/a N/A N/A N/A self assertEqual globs N/A a/a/a a/b/a N/A test_chdir_and_relative_glob_from_subdir N/A N/A self N/A N/A N/A N/A N/A self _mkfs N/A N/A N/A os chdir /a N/A globs N/A N/A glob glob */a N/A N/A N/A self assertEqual globs N/A a/a b/a N/A test_listdir_from_subdir N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b /a/c/c N/A N/A N/A N/A self mfs add_entries filesystem N/A N/A N/A os chdir /a N/A entries N/A N/A os listdir . N/A N/A N/A self assertEqual entries N/A a b c N/A test_os_getsize N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b {} N/A N/A N/A N/A self mfs add_entries filesystem N/A a_size N/A N/A N/A os path getsize /a/a N/A N/A N/A self assertEqual a_size 0 N/A b_size N/A N/A N/A os path getsize /a/b N/A N/A N/A self assertEqual b_size 2 N/A test_os_getsize_directory N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b N/A N/A N/A N/A self mfs add_entries filesystem N/A dir_size N/A N/A N/A os path getsize /a N/A N/A N/A self assertEqual dir_size 2 N/A test_os_getsize_subdir N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b {} N/A N/A N/A N/A self mfs add_entries filesystem N/A N/A N/A os chdir /a N/A a_size N/A N/A N/A os path getsize a N/A N/A N/A self assertEqual a_size 0 N/A b_size N/A N/A N/A os path getsize b N/A N/A N/A self assertEqual b_size 2 N/A test_shutil_rmtree N/A N/A self N/A N/A N/A filesystem N/A /a/a /a/b N/A N/A N/A N/A self mfs add_entries filesystem N/A N/A N/A shutil rmtree /a N/A N/A N/A self assertEqual N/A N/A os listdir / N/A N/A test_os_makedirs_creates_new_entry N/A N/A self N/A N/A N/A N/A N/A os makedirs /new/directory N/A N/A N/A self assertTrue N/A N/A N/A os path isdir /new/directory N/A test_os_makedirs_raises_on_root N/A N/A self N/A N/A N/A N/A N/A self assertRaises OSError N/A os makedirs / N/A test_os_makedirs_on_second_try N/A N/A self N/A N/A N/A N/A N/A os makedirs /new/directory N/A N/A N/A self assertRaises OSError N/A os makedirs /new/directory N/A N/A suite N/A N/A N/A N/A N/A suite N/A N/A unittest TestSuite N/A N/A N/A suite addTest N/A N/A unittest makeSuite MockFSTestCase N/A suite N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main