예제 #1
0
 def test_bad_path(self):
     path1 = None
     path2 = "foo/lib/boo"
     self.assertEquals(sosRelPath(path1, path2), "foo/lib/boo")
예제 #2
0
 def test_abs_path(self):
     path1 = "usr/lib/foo"
     path2 = "foo/lib/boo"
     self.assertEquals(sosRelPath(path1, path2), "foo/lib/boo")
예제 #3
0
 def test_rel_path(self):
     path1 = "/usr/lib/foo"
     path2 = "/usr/lib/boo"
     self.assertEquals(sosRelPath(path1, path2), "../boo")
예제 #4
0
 def test_bad_path(self):
     path1 = None
     path2 = "foo/lib/boo"
     self.assertEquals(sosRelPath(path1, path2), "foo/lib/boo")
예제 #5
0
 def test_abs_path(self):
     path1 = "usr/lib/foo"
     path2 = "foo/lib/boo"
     self.assertEquals(sosRelPath(path1, path2), "foo/lib/boo")
예제 #6
0
 def test_rel_path(self):
     path1 = "/usr/lib/foo"
     path2 = "/usr/lib/boo"
     self.assertEquals(sosRelPath(path1, path2), "../boo")