Пример #1
0
 def test_readlink_abs_norm(self):
     self.assertEqual(readlink("/a/../c"), "/c")
Пример #2
0
 def test_readlink_norm(self):
     self.assertEqual(readlink("a/../b"), "/tmp/b")
Пример #3
0
 def test_readlink_sym(self):
     self.assertEqual(readlink(self.linkpath), "/tmp")
Пример #4
0
 def test_readlink_sym_missing_norm(self):
     self.assertEqual(readlink(self.linkpath + "/some/../other"),
                      "/tmp/other")
Пример #5
0
 def test_readlink_abs(self):
     self.assertEqual(readlink("test"), "/tmp/test")