def test_bad_path(self): path1 = None path2 = "foo/lib/boo" self.assertEquals(sosRelPath(path1, path2), "foo/lib/boo")
def test_abs_path(self): path1 = "usr/lib/foo" path2 = "foo/lib/boo" self.assertEquals(sosRelPath(path1, path2), "foo/lib/boo")
def test_rel_path(self): path1 = "/usr/lib/foo" path2 = "/usr/lib/boo" self.assertEquals(sosRelPath(path1, path2), "../boo")