Lines Matching refs:pathmodule

28                 getattr(self.pathmodule, attr)()
30 .format(self.pathmodule.__name__, attr))
33 commonprefix = self.pathmodule.commonprefix
104 self.assertEqual(self.pathmodule.getsize(filename), 5)
108 self.assertEqual(self.pathmodule.getsize(filename), 12)
124 self.pathmodule.getctime(filename),
125 self.pathmodule.getmtime(filename)
133 self.assertIs(self.pathmodule.exists(filename), False)
134 self.assertIs(self.pathmodule.exists(bfilename), False)
138 self.assertIs(self.pathmodule.exists(filename), True)
139 self.assertIs(self.pathmodule.exists(bfilename), True)
141 if self.pathmodule is not genericpath:
142 self.assertIs(self.pathmodule.lexists(filename), True)
143 self.assertIs(self.pathmodule.lexists(bfilename), True)
149 self.assertTrue(self.pathmodule.exists(r))
153 self.assertFalse(self.pathmodule.exists(r))
158 self.assertIs(self.pathmodule.isdir(filename), False)
159 self.assertIs(self.pathmodule.isdir(bfilename), False)
163 self.assertIs(self.pathmodule.isdir(filename), False)
164 self.assertIs(self.pathmodule.isdir(bfilename), False)
170 self.assertIs(self.pathmodule.isdir(filename), True)
171 self.assertIs(self.pathmodule.isdir(bfilename), True)
178 self.assertIs(self.pathmodule.isfile(filename), False)
179 self.assertIs(self.pathmodule.isfile(bfilename), False)
183 self.assertIs(self.pathmodule.isfile(filename), True)
184 self.assertIs(self.pathmodule.isfile(bfilename), True)
190 self.assertIs(self.pathmodule.isfile(filename), False)
191 self.assertIs(self.pathmodule.isfile(bfilename), False)
202 self.assertTrue(self.pathmodule.samefile(file1, file1))
205 self.assertFalse(self.pathmodule.samefile(file1, file2))
207 self.assertRaises(TypeError, self.pathmodule.samefile)
218 self.assertTrue(self.pathmodule.samefile(test_fn1, test_fn2))
222 self.assertFalse(self.pathmodule.samefile(test_fn1, test_fn2))
242 self.assertTrue(self.pathmodule.samestat(stat1, os.stat(test_fn1)))
246 self.assertFalse(self.pathmodule.samestat(stat1, stat2))
248 self.assertRaises(TypeError, self.pathmodule.samestat)
258 self.assertTrue(self.pathmodule.samestat(os.stat(test_fn1),
263 self.assertFalse(self.pathmodule.samestat(os.stat(test_fn1),
285 self.assertTrue(self.pathmodule.sameopenfile(fd1, fd2))
292 pathmodule = genericpath variable in TestGenericTest
299 func = getattr(self.pathmodule, attr)
329 normcase = self.pathmodule.normcase
344 splitdrive = self.pathmodule.splitdrive
354 if self.pathmodule.__name__ == 'macpath':
356 expandvars = self.pathmodule.expandvars
388 if self.pathmodule.__name__ == 'macpath':
390 expandvars = self.pathmodule.expandvars
415 self.assertIn("foo", self.pathmodule.abspath("foo"))
418 self.assertIn(b"foo", self.pathmodule.abspath(b"foo"))
427 self.assertIsInstance(self.pathmodule.abspath(path), bytes)
430 self.assertIn("foo", self.pathmodule.realpath("foo"))
433 self.assertIn(b"foo", self.pathmodule.realpath(b"foo"))
438 self.assertIsInstance(self.pathmodule.normpath(path), str)
443 abspath = self.pathmodule.abspath
481 self.pathmodule.join(b'bytes', 'str')
483 self.pathmodule.join('str', b'bytes')
486 self.pathmodule.join(42, 'str')
488 self.pathmodule.join('str', 42)
490 self.pathmodule.join(42)
492 self.pathmodule.join([])
494 self.pathmodule.join(bytearray(b'foo'), bytearray(b'bar'))
502 self.pathmodule.relpath(b'bytes', 'str')
504 self.pathmodule.relpath('str', b'bytes')
506 self.pathmodule.relpath(42, 'str')
508 self.pathmodule.relpath('str', 42)
510 self.pathmodule.relpath(bytearray(b'foo'), bytearray(b'bar'))
513 assert_python_ok('-S', '-c', 'import ' + self.pathmodule.__name__)