def test_04_normpath__relative(self): curdir = os.curdir relpath = "./a/b/c.txt" self.assertEquals(TT.normpath(relpath), TT.normpath(os.path.join(curdir, relpath)))
def test_04_normpath(self): self.assertEquals(TT.normpath("/tmp/../etc/hosts"), "/etc/hosts") self.assertEquals(TT.normpath("~root/t"), "/root/t")