예제 #1
0
 def test_is_relpath_5(self):
     self.assertFalse(is_relpath("/foo/bar/qux/baz", "/foo/bar/baz"))
예제 #2
0
 def test_is_relpath_3(self):
     self.assertTrue(is_relpath("/foo/bar/baz", "/"))
예제 #3
0
 def test_is_relpath_4(self):
     self.assertTrue(is_relpath("/", "/"))
예제 #4
0
 def test_is_relpath_2(self):
     self.assertTrue(is_relpath("/foo/bar/baz/../../../qux", "/foo/bar/baz"))