def _lease_owned(self, lease, current_uuid_path):
prev_uuid_path, prev_uuid = lease.metadata<EOL>with open(current_uuid_path) as f:<EOL><INDENT>current_uuid = f.read()<EOL><DEDENT>returncurrent_uuid_path == prev_uuid_path andprev_uuid == current_uuid<EOL>
Checks if the given lease is owned by the prefix whose uuid is in
the given path

Note:
    The prefix must be also in the same path it was when it took the
    lease

Args:
    path (str): Path to the lease
    current_uuid_path (str): Path to the uuid to check ownership of

Returns:
    bool: ``True`` if the given lease in owned by the prefix,
        ``False`` otherwise