def METHOD_NAME(
    self, pyramid_request, mock_es_client, BatchIndexer
):
    reindex(mock.sentinel.session, mock_es_client, pyramid_request)
    _, kwargs = BatchIndexer.call_args
    assert kwargs["op_type"] == "create"