• Home
  • Raw
  • Download

Lines Matching +full:path +full:- +full:exists

13 if not os.path.supports_unicode_filenames:
22 if os.path.exists(filename):
27 # file already exists etc.
32 self.assertTrue(os.path.exists(filename))
33 self.assertTrue(os.path.isfile(filename))
35 self.assertTrue(os.path.exists(os.path.abspath(filename)))
36 self.assertTrue(os.path.isfile(os.path.abspath(filename)))
37 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
45 os.path.abspath(filename)==os.path.abspath(glob.glob(glob.escape(filename))[0]))
47 path, base = os.path.split(os.path.abspath(filename))
48 file_list = os.listdir(path)
49 # Normalize the unicode strings, as round-tripping the name via the OS
59 self.assertTrue(os.path.isfile(filename1)) # must exist.
61 self.assertFalse(os.path.isfile(filename2))
62 self.assertTrue(os.path.isfile(filename1 + '.new'))
64 self.assertFalse(os.path.isfile(filename1 + '.new'))
65 self.assertTrue(os.path.isfile(filename2))
71 self.assertFalse(os.path.exists(filename2))
72 self.assertTrue(os.path.exists(filename1 + '.new'))
74 self.assertFalse(os.path.exists(filename2 + '.new'))
75 self.assertTrue(os.path.exists(filename1))
76 # Note - due to the implementation of shutil.move,
78 # different file systems - and this test can't ensure that.
82 self.assertTrue(os.path.isfile(filename1 + '.new'))
84 self.assertFalse(os.path.exists(filename2 + '.new'))
87 if os.path.isdir(make_name):
98 self.assertEqual(os.path.basename(cwd_result),name_result)
102 # The '_test' functions 'entry points with params' - ie, what the
103 # top-level 'test' functions would be if they could take params
111 self.assertTrue(not os.path.exists(filename))
133 # Our directory name that can't use a non-unicode name.