def test_readlink_abs_norm(self): self.assertEqual(readlink("/a/../c"), "/c")
def test_readlink_norm(self): self.assertEqual(readlink("a/../b"), "/tmp/b")
def test_readlink_sym(self): self.assertEqual(readlink(self.linkpath), "/tmp")
def test_readlink_sym_missing_norm(self): self.assertEqual(readlink(self.linkpath + "/some/../other"), "/tmp/other")
def test_readlink_abs(self): self.assertEqual(readlink("test"), "/tmp/test")