示例#1
0
    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)))
示例#2
0
 def test_04_normpath(self):
     self.assertEquals(TT.normpath("/tmp/../etc/hosts"), "/etc/hosts")
     self.assertEquals(TT.normpath("~root/t"), "/root/t")