

def test_returns_404_if_not_enabled_in_configuration(self):
    extra = {
        'kinto.flush_endpoint_enabled': False,
    }
    app = self._get_test_app(settings=extra)
    app.post('/__flush__', headers=app.headers, status=404)

dataset/ETHPy150Open Kinto/kinto/kinto/tests/test_views_flush.py FlushViewTest.test_returns_404_if_not_enabled_in_configuration/VarMisuse@40/64 `self`->`app`