'L{lockfile.symlink} raises L{OSError} with C{errno} set to L{EEXIST}
when an attempt is made to create a symlink which already exists.'

def test_symlinkEEXIST(self):

    name = self.mktemp()
    lockfile.symlink('foo', name)
    exc = self.assertRaises(OSError, lockfile.symlink, 'foo', name)
    self.assertEqual(exc.errno, errno.EEXIST)
