def test_hardlink(self):
tmpdir = self.tmpdir
linkpath = tmpdir.join('test')
filepath = tmpdir.join('file')
filepath.write("Hello")
nlink = filepath.stat().st_nlink
-> linkpath.mklinkto(filepath)
assert filepath.stat().st_nlink == nlink + 1