Lines Matching refs:relpath
391 self.assertRaises(ValueError, posixpath.relpath, "")
392 self.assertEqual(posixpath.relpath("a"), "a")
393 self.assertEqual(posixpath.relpath(posixpath.abspath("a")), "a")
394 self.assertEqual(posixpath.relpath("a/b"), "a/b")
395 self.assertEqual(posixpath.relpath("../a/b"), "../a/b")
396 relpath("a", "../b"), "../"+curdir+"/a")
397 self.assertEqual(posixpath.relpath("a/b", "../c"), "../"+curdir+"/a/b")
398 self.assertEqual(posixpath.relpath("a", "b/c"), "../../a")
399 self.assertEqual(posixpath.relpath("a", "a"), ".")
400 self.assertEqual(posixpath.relpath("/foo/bar/bat", "/x/y/z"), '../../../foo/bar/bat')
401 self.assertEqual(posixpath.relpath("/foo/bar/bat", "/foo/bar"), 'bat')
402 self.assertEqual(posixpath.relpath("/foo/bar/bat", "/"), 'foo/bar/bat')
403 self.assertEqual(posixpath.relpath("/", "/foo/bar/bat"), '../../..')
404 self.assertEqual(posixpath.relpath("/foo/bar/bat", "/x"), '../foo/bar/bat')
405 self.assertEqual(posixpath.relpath("/x", "/foo/bar/bat"), '../../../x')
406 self.assertEqual(posixpath.relpath("/", "/"), '.')
407 self.assertEqual(posixpath.relpath("/a", "/a"), '.')
408 self.assertEqual(posixpath.relpath("/a/b", "/a/b"), '.')
415 attributes = ['relpath', 'samefile', 'sameopenfile', 'samestat']