Module Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assert Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assert CompareEq BinOpBitAnd AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq NameLoad ListLoad ListLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad NameLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call AttributeLoad NameLoad attr NameLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list
N/A N/A os base BaseTopazTest TestDir N/A BaseTopazTest N/A test_name N/A N/A self space N/A N/A N/A N/A N/A space execute Dir N/A test_pwd N/A N/A self space N/A N/A N/A w_res N/A N/A space execute return Dir.pwd N/A N/A N/A N/A space str_w w_res N/A N/A os getcwd N/A w_res N/A N/A space execute return Dir.getwd N/A N/A N/A N/A space str_w w_res N/A N/A os getcwd N/A test_new N/A N/A self space tmpdir N/A N/A N/A d N/A N/A tmpdir mkdir sub N/A f N/A N/A d join content N/A N/A N/A f write hello N/A N/A N/A space execute N/A Dir.new('%s') d N/A N/A N/A self raises space Errno::ENOENT N/A N/A N/A N/A space execute Dir.new('this does not exist') N/A N/A N/A self raises space Errno::ENOTDIR N/A N/A N/A N/A space execute N/A Dir.new('%s') f N/A test_delete N/A N/A self space tmpdir N/A N/A N/A d N/A N/A tmpdir mkdir sub N/A N/A N/A space execute N/A Dir.delete('%s') d N/A N/A N/A N/A tmpdir listdir N/A d N/A N/A tmpdir mkdir sub N/A f N/A N/A d join content N/A N/A N/A f write hello N/A N/A N/A self raises space Errno::ENOTEMPTY N/A N/A N/A N/A space execute N/A Dir.delete('%s') d N/A test_mkdir N/A N/A self space tmpdir N/A N/A N/A N/A N/A space execute N/A Dir.mkdir(File.join('%s', 'madedir')) tmpdir N/A N/A N/A N/A N/A tmpdir join madedir check N/A N/A N/A N/A N/A N/A N/A N/A tmpdir join madedir stat mode 64 64 N/A test_chdir N/A N/A self space tmpdir monkeypatch N/A N/A N/A w_res N/A N/A space execute N/A 
        dirs = []
        dirs << Dir.pwd
        Dir.chdir('%s') do
          dirs << Dir.pwd
        end
        dirs << Dir.pwd
        return dirs
         tmpdir N/A paths N/A N/A N/A os getcwd N/A N/A N/A os path realpath N/A str tmpdir N/A N/A os getcwd N/A N/A N/A N/A self unwrap space w_res paths N/A N/A N/A monkeypatch setenv HOME N/A str tmpdir N/A w_res N/A N/A space execute 
        Dir.chdir do
          return Dir.pwd
        end
         N/A N/A N/A N/A space str_w w_res N/A N/A N/A os path realpath N/A str tmpdir N/A test_glob N/A N/A self space tmpdir N/A N/A N/A sub1 N/A N/A tmpdir mkdir sub1 N/A sub2 N/A N/A tmpdir mkdir sub2 N/A N/A N/A N/A N/A sub1 join sub1content1 ensure N/A N/A N/A N/A N/A sub1 join sub1content2 ensure N/A N/A N/A N/A N/A sub2 join sub2content1 ensure N/A N/A N/A N/A N/A sub2 join sub2content2 ensure N/A w_res N/A N/A space execute N/A 
        Dir.chdir('%s') do
          return Dir['*']
        end
         tmpdir N/A res N/A N/A self unwrap space w_res N/A N/A N/A res sort N/A N/A res N/A sub1 sub2 N/A w_res N/A N/A space execute N/A 
        Dir.chdir('%s') do
          return Dir['**/*']
        end
         tmpdir N/A res N/A N/A self unwrap space w_res N/A N/A N/A res sort N/A N/A res N/A sub1 sub1/sub1content1 sub1/sub1content2 sub2 sub2/sub2content1 sub2/sub2content2 N/A w_res N/A N/A space execute N/A 
        Dir.chdir('%s') do
          return Dir['**/*{1con}*']
        end
         tmpdir N/A res N/A N/A self unwrap space w_res N/A N/A N/A res sort N/A N/A res N/A sub1/sub1content1 sub1/sub1content2 N/A w_res N/A N/A space execute N/A 
        Dir.chdir('%s') do
          return Dir['**/sub[1]content[12]']
        end
         tmpdir N/A res N/A N/A self unwrap space w_res N/A N/A N/A res sort N/A N/A res N/A sub1/sub1content1 sub1/sub1content2 N/A w_res N/A N/A space execute N/A 
        Dir.chdir('%s') do
          return Dir['%s/']
        end
         N/A tmpdir N/A N/A tmpdir join .. N/A N/A N/A N/A self unwrap space w_res N/A N/A N/A str N/A N/A tmpdir join .. / N/A w_res N/A N/A space execute N/A 
        Dir.chdir('%s') do
          return Dir["sub1\0foo", "sub\02bar"], Dir["sub1\0foo"]
        end
         tmpdir N/A res N/A N/A self unwrap space w_res N/A N/A res N/A N/A sub1 N/A sub1 N/A test_read N/A N/A self space tmpdir N/A N/A N/A d N/A N/A tmpdir mkdir sub N/A f N/A N/A d join content N/A N/A N/A f write hello N/A f N/A N/A d join content2 N/A N/A N/A f write hello N/A w_res N/A N/A space execute N/A 
        d = Dir.new('%s')
        return [d.read, d.read, d.read, d.read, d.read]
         d N/A res N/A N/A self unwrap space w_res N/A N/A N/A res sort N/A N/A res N/A None . .. content content2 N/A test_close N/A N/A self space tmpdir N/A N/A N/A N/A N/A self raises space IOError closed directory N/A N/A N/A N/A space execute N/A 
            d = Dir.new('%s')
            d.close
            d.close
             tmpdir N/A N/A N/A self raises space IOError closed directory N/A N/A N/A N/A space execute N/A 
            d = Dir.new('%s')
            d.close
            d.read
             tmpdir N/A N/A