'L{lockfile.readlink} raises L{OSError} with C{errno} set to L{ENOENT}
when an attempt is made to read a symlink which does not exist.'

def test_readlinkENOENT(self):

    name = self.mktemp()
    exc = self.assertRaises(OSError, lockfile.readlink, name)
    self.assertEqual(exc.errno, errno.ENOENT)
