<filename>tests/test_utils.py
from ocdsapi.utils import (
    prepare_responce_doc
)


def test_prepare_response_doc():
    doc = {'id': "test", "_id": "test", "_rev": "test", "$schema": ""}
    filtered = prepare_responce_doc(doc)
    assert "_id" not in filtered
    assert "_rev" not in filtered
    assert "id" in filtered

<filename>tests/test_utils.py
from ocdsapi.utils import (
    prepare_responce_doc
)


def test_prepare_response_doc():
    doc = {'id': "test", "_id": "test", "_rev": "test", "$schema": ""}
    filtered = prepare_responce_doc(doc)
    assert "_id" not in filtered
    assert "_rev" not in filtered
    assert "id" in filtered
