def test_symlink_isdir(self):
tmpdir = self.tmpdir
linkpath = tmpdir.join('test')
-> linkpath.mksymlinkto(tmpdir)
assert linkpath.check(dir=1)
assert not linkpath.check(link=0, dir=1)