Пример #1
0
 def test_parallel_dir(self):
     self.assertEqual(base_utils.get_relative_path("/a/c/d", "/a/b/c/d"),
                      "../../../c/d")
Пример #2
0
 def test_forward_dir(self):
     self.assertEqual(base_utils.get_relative_path("/a/b/c/d", "/a/b"), "c/d")
Пример #3
0
 def test_previous_dir(self):
     self.assertEqual(base_utils.get_relative_path("/a/b", "/a/b/c/d"), "../..")
Пример #4
0
 def test_same_dir(self):
     self.assertEqual(base_utils.get_relative_path("/a/b/c", "/a/b"), "c")