def requested(self, lock): '''Return True if we are in the queue for the lock''' return lock in self.requests[hookenv.local_unit()]