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