def auth(self, *args, **kw):
        if self._meta.auth_mech in self.auth_mechanizms:
            func = getattr(self, '_auth_via_%s' % self._meta.auth_mech)
            func(*args, **kw)
        else:
            raise exc.dRestAPIError("Unknown TastyPie auth mechanism.")
If impersonate_id doesn't correspond to a valid user, do nothing.
dataset/ETHPy150Open datafolklabs/drest/drest/api.py/TastyPieAPI.auth--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/middleware/tests/test_impersonation.py/ImpersonationMiddlewareTest.test_process_request_user_does_not_exist