def METHOD_NAME(self):
    user = data_setup.create_user()
    cookie = acquire_cookie(user)
    with app.test_request_context(headers={'Cookie': cookie}):
        identity.check_authentication()
        self.assertEqual(identity.current.user, user)
        self.assertIsNone(identity.current.proxied_by_user)