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
Check if account belongs to a project/tenant
dataset/ETHPy150Open openstack/swift/swift/common/middleware/keystoneauth.py/KeystoneAuth._account_matches_tenant