

def _account_matches_tenant(self, account, tenant_id):
    'Check if account belongs to a project/tenant'
    for prefix in self.reseller_prefixes:
        if (self._get_account_name(prefix, tenant_id) == account):
            return True
    return False

dataset/ETHPy150Open openstack/swift/swift/common/middleware/keystoneauth.py KeystoneAuth._account_matches_tenant/original