def METHOD_NAME(self, mocker, user):
    client = self._test_client(extra_config={'ENABLE_AUTH': True})
    data = {'users': [{'id': 1234}]}
    mocker.patch('servicex.models.UserModel.return_all', return_value=data)
    with client.session_transaction() as sess:
        sess['is_authenticated'] = True
        sess['admin'] = True
    with client.application.app_context():
        response: Response = client.get('users')
        assert response.status_code == 200
        assert response.json == data