def test_parallel_dir(self): self.assertEqual(base_utils.get_relative_path("/a/c/d", "/a/b/c/d"), "../../../c/d")
def test_forward_dir(self): self.assertEqual(base_utils.get_relative_path("/a/b/c/d", "/a/b"), "c/d")
def test_previous_dir(self): self.assertEqual(base_utils.get_relative_path("/a/b", "/a/b/c/d"), "../..")
def test_same_dir(self): self.assertEqual(base_utils.get_relative_path("/a/b/c", "/a/b"), "c")
def test_parallel_dir(self): self.assertEqual(base_utils.get_relative_path("/a/c/d", "/a/b/c/d"), "../../../c/d")
def test_previous_dir(self): self.assertEqual(base_utils.get_relative_path("/a/b", "/a/b/c/d"), "../..")
def test_forward_dir(self): self.assertEqual(base_utils.get_relative_path("/a/b/c/d", "/a/b"), "c/d")
def test_same_dir(self): self.assertEqual(base_utils.get_relative_path("/a/b/c", "/a/b"), "c")