def test_symlink_relative(self): |
tmpdir = self.tmpdir |
linkpath = tmpdir.join('test') |
filepath = tmpdir.join('file') |
filepath.write("Hello") |
linkpath.mksymlinkto(filepath, absolute=False) |
-> assert linkpath.readlink() == "file" |
assert filepath.read() == linkpath.read() |