def i_am_locking(self):
return self.is_locked() and os.getpid() == self.read_pid()<EOL>
Test if the lock is held by the current process.

        Returns ``True`` if the current process ID matches the
        number stored in the PID file.