Lines Matching refs:realpath
268 self.assertPathEqual(ntpath.realpath(ABSTFN + "1"), ABSTFN)
269 self.assertPathEqual(ntpath.realpath(os.fsencode(ABSTFN + "1")),
280 self.assertRaises(FileNotFoundError, ntpath.realpath, ABSTFN, strict=True)
281 self.assertRaises(FileNotFoundError, ntpath.realpath, ABSTFN + "2", strict=True)
292 self.assertPathEqual(ntpath.realpath(ABSTFN + "1"), ABSTFN)
315 self.assertPathEqual(ntpath.realpath("broken"),
317 self.assertPathEqual(ntpath.realpath(r"broken\foo"),
321 self.assertPathEqual(ntpath.realpath(r"broken1"),
323 self.assertPathEqual(ntpath.realpath(r"broken1\baz"),
325 self.assertPathEqual(ntpath.realpath("broken2"),
327 self.assertPathEqual(ntpath.realpath("broken3"),
329 self.assertPathEqual(ntpath.realpath("broken4"),
331 self.assertPathEqual(ntpath.realpath("broken5"),
334 self.assertPathEqual(ntpath.realpath(b"broken"),
336 self.assertPathEqual(ntpath.realpath(rb"broken\foo"),
338 self.assertPathEqual(ntpath.realpath(rb"broken1"),
340 self.assertPathEqual(ntpath.realpath(rb"broken1\baz"),
342 self.assertPathEqual(ntpath.realpath(b"broken2"),
344 self.assertPathEqual(ntpath.realpath(rb"broken3"),
346 self.assertPathEqual(ntpath.realpath(b"broken4"),
348 self.assertPathEqual(ntpath.realpath(b"broken5"),
366 self.assertPathEqual(ntpath.realpath(ABSTFN), ABSTFN)
371 self.assertPathIn(ntpath.realpath(ABSTFN + "1"), expected)
372 self.assertPathIn(ntpath.realpath(ABSTFN + "2"), expected)
374 self.assertPathIn(ntpath.realpath(ABSTFN + "1\\x"),
376 self.assertPathEqual(ntpath.realpath(ABSTFN + "1\\.."),
378 self.assertPathEqual(ntpath.realpath(ABSTFN + "1\\..\\x"),
381 self.assertPathEqual(ntpath.realpath(ABSTFN + "1\\..\\"
384 self.assertPathIn(ntpath.realpath(ABSTFN + "1\\..\\"
389 self.assertPathEqual(ntpath.realpath(ABSTFN + "a"), ABSTFN + "a")
393 self.assertPathEqual(ntpath.realpath(ABSTFN + "c"), ABSTFN + "c")
396 self.assertPathEqual(ntpath.realpath(ntpath.basename(ABSTFN)), ABSTFN)
411 self.assertRaises(OSError, ntpath.realpath, ABSTFN, strict=True)
415 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1", strict=True)
416 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "2", strict=True)
417 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1\\x", strict=True)
420 self.assertPathEqual(ntpath.realpath(ABSTFN + "1\\..", strict=True),
422 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1\\..\\x", strict=True)
424 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1\\..\\"
427 self.assertRaises(OSError, ntpath.realpath,
432 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "a", strict=True)
436 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "c", strict=True)
439 self.assertRaises(OSError, ntpath.realpath, ntpath.basename(ABSTFN),
459 self.assertPathEqual(ntpath.realpath(ABSTFN + "3link"),
461 self.assertPathEqual(ntpath.realpath(ABSTFN + "3.link"),
465 with open(ntpath.realpath(ABSTFN + "3link"), "rb") as f:
467 with open(ntpath.realpath(ABSTFN + "3.link"), "rb") as f:
471 self.assertPathEqual(ntpath.realpath("\\\\?\\" + ABSTFN + "3link"),
473 self.assertPathEqual(ntpath.realpath("\\\\?\\" + ABSTFN + "3.link"),
500 self.assertPathEqual(test_file_long, ntpath.realpath(test_file_short))
503 self.assertPathEqual(test_file_long, ntpath.realpath("file.txt"))
505 self.assertPathEqual(test_file_long, ntpath.realpath("file.txt"))
507 self.assertPathEqual(test_file_long, ntpath.realpath("file.txt"))
855 self._check_function(self.path.realpath)