Module Import alias Import alias ImportFrom alias alias alias Import alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Set Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Set Str Str Str Str Str Str Str Assign NameStore Set Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr orelse Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad BinOpAdd Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd Str NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body If CompareEq NameLoad NameLoad body Raise Call NameLoad NameLoad Continue If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad Str body Pass If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Str orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Str FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore TupleLoad Str Str body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad Break decorator_list Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Num 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 unittest N/A os test.support TESTFN run_unittest import_fresh_module N/A stat TestFilemode N/A N/A unittest TestCase N/A N/A file_flags N/A SF_APPEND SF_ARCHIVED SF_IMMUTABLE SF_NOUNLINK SF_SNAPSHOT UF_APPEND UF_COMPRESSED UF_HIDDEN UF_IMMUTABLE UF_NODUMP UF_NOUNLINK UF_OPAQUE N/A formats N/A S_IFBLK S_IFCHR S_IFDIR S_IFIFO S_IFLNK S_IFREG S_IFSOCK N/A format_funcs N/A S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISLNK S_ISREG S_ISSOCK N/A stat_struct N/A ST_MODE ST_INO ST_DEV ST_NLINK ST_UID ST_GID ST_SIZE ST_ATIME ST_MTIME ST_CTIME 0 1 2 3 4 5 6 7 8 9 N/A permission_bits N/A S_ISUID S_ISGID S_ENFMT S_ISVTX S_IRWXU S_IRUSR S_IREAD S_IWUSR S_IWRITE S_IXUSR S_IEXEC S_IRWXG S_IRGRP S_IWGRP S_IXGRP S_IRWXO S_IROTH S_IWOTH S_IXOTH 2048 1024 1024 512 448 256 256 128 128 64 64 56 32 16 8 7 4 2 1 setUp N/A N/A self N/A N/A N/A N/A N/A N/A N/A os remove TESTFN N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A os rmdir TESTFN N/A N/A N/A OSError N/A N/A N/A N/A tearDown setUp get_mode N/A N/A self fname lstat N/A TESTFN True N/A N/A lstat N/A N/A st_mode N/A N/A N/A os lstat fname st_mode N/A N/A st_mode N/A N/A N/A os stat fname st_mode N/A modestr N/A N/A stat filemode st_mode N/A N/A st_mode modestr N/A assertS_IS N/A N/A self name mode N/A N/A N/A fmt N/A getattr stat N/A S_IF N/A N/A name lstrip F N/A N/A N/A self assertEqual N/A N/A stat S_IFMT mode fmt N/A testname N/A S_IS name N/A funcname N/A self format_funcs N/A N/A func N/A getattr stat funcname None N/A N/A func None N/A N/A N/A funcname testname N/A N/A N/A ValueError funcname N/A N/A N/A funcname testname N/A N/A N/A N/A self assertTrue N/A func mode N/A N/A N/A N/A self assertFalse N/A func mode N/A test_mode N/A N/A self N/A N/A N/A N/A open TESTFN w N/A N/A N/A N/A N/A os name posix N/A N/A N/A N/A os chmod TESTFN 448 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertEqual modestr -rwx------ N/A N/A N/A self assertS_IS REG st_mode N/A N/A N/A self assertEqual N/A N/A stat S_IMODE st_mode N/A stat S_IRWXU N/A N/A N/A os chmod TESTFN 56 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertEqual modestr ----rwx--- N/A N/A N/A self assertS_IS REG st_mode N/A N/A N/A self assertEqual N/A N/A stat S_IMODE st_mode N/A stat S_IRWXG N/A N/A N/A os chmod TESTFN 7 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertEqual modestr -------rwx N/A N/A N/A self assertS_IS REG st_mode N/A N/A N/A self assertEqual N/A N/A stat S_IMODE st_mode N/A stat S_IRWXO N/A N/A N/A os chmod TESTFN 292 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertS_IS REG st_mode N/A N/A N/A self assertEqual modestr -r--r--r-- N/A N/A N/A self assertEqual N/A N/A stat S_IMODE st_mode 292 N/A N/A N/A N/A os chmod TESTFN 448 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertEqual N/A modestr N/A 3 -rw N/A N/A N/A self assertS_IS REG st_mode N/A N/A N/A self assertEqual N/A N/A stat S_IFMT st_mode N/A stat S_IFREG N/A test_directory N/A N/A self N/A N/A N/A N/A N/A os mkdir TESTFN N/A N/A N/A os chmod TESTFN 448 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertS_IS DIR st_mode N/A N/A N/A os name posix N/A N/A N/A N/A self assertEqual modestr drwx------ N/A N/A N/A N/A self assertEqual N/A modestr N/A 0 d N/A test_link N/A N/A self N/A N/A N/A N/A N/A N/A N/A os symlink N/A N/A os getcwd TESTFN N/A N/A N/A N/A OSError NotImplementedError N/A err N/A N/A N/A N/A unittest SkipTest N/A str err N/A N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertEqual N/A modestr N/A 0 l N/A N/A N/A self assertS_IS LNK st_mode N/A N/A N/A unittest skipUnless N/A hasattr os symlink os.symlink not available test_fifo N/A N/A self N/A N/A N/A N/A N/A os mkfifo TESTFN 448 N/A N/A st_mode modestr N/A N/A self get_mode N/A N/A N/A self assertEqual modestr prwx------ N/A N/A N/A self assertS_IS FIFO st_mode N/A N/A N/A unittest skipUnless N/A hasattr os mkfifo os.mkfifo not available test_devices N/A N/A self N/A N/A N/A N/A N/A N/A os path exists N/A os devnull N/A N/A N/A st_mode modestr N/A N/A self get_mode N/A os devnull lstat False N/A N/A N/A self assertEqual N/A modestr N/A 0 c N/A N/A N/A self assertS_IS CHR st_mode N/A blockdev N/A /dev/sda /dev/hda N/A N/A N/A N/A N/A os path exists blockdev N/A N/A N/A st_mode modestr N/A N/A self get_mode blockdev lstat False N/A N/A N/A self assertEqual N/A modestr N/A 0 b N/A N/A N/A self assertS_IS BLK st_mode N/A N/A N/A N/A unittest skipUnless N/A N/A os name posix requires Posix test_module_attributes N/A N/A self N/A N/A N/A N/A key value N/A N/A N/A self stat_struct items N/A N/A modvalue N/A getattr stat key N/A N/A N/A self assertEqual value modvalue key N/A N/A key value N/A N/A N/A self permission_bits items N/A N/A modvalue N/A getattr stat key N/A N/A N/A self assertEqual value modvalue key N/A key N/A self file_flags N/A N/A modvalue N/A getattr stat key N/A N/A N/A self assertIsInstance modvalue int N/A key N/A self formats N/A N/A modvalue N/A getattr stat key N/A N/A N/A self assertIsInstance modvalue int N/A key N/A self format_funcs N/A N/A func N/A getattr stat key N/A N/A N/A self assertTrue N/A callable func N/A N/A N/A self assertEqual N/A func 0 0 N/A N/A test_main N/A N/A N/A N/A N/A N/A run_unittest TestFilemode N/A N/A N/A __name__ __main__ N/A N/A N/A test_main