'L{isLocked} returns C{True} if the named lock is currently locked,
C{False} otherwise.'

def test_isLocked(self):

    lockf = self.mktemp()
    self.assertFalse(lockfile.isLocked(lockf))
    lock = lockfile.FilesystemLock(lockf)
    self.assertTrue(lock.lock())
    self.assertTrue(lockfile.isLocked(lockf))
    lock.unlock()
    self.assertFalse(lockfile.isLocked(lockf))
