'Check if account belongs to a project/tenant'

def _account_matches_tenant(self, account, tenant_id):

    for prefix in self.reseller_prefixes:
        if (self._get_account_name(prefix, tenant_id) == account):
            return True
    return False
