async def METHOD_NAME(mocker, mongo, config):
    m = mocker.patch(
        "virtool.history.db.patch_to_version",
        make_mocked_coro((None, {"_id": "foo"}, None)),
    )
    manifest = {"foo": 2, "bar": 10, "baz": 4}
    patched_otus = await get_patched_otus(mongo, config, manifest)
    assert list(patched_otus) == [{"_id": "foo"}, {"_id": "foo"}, {"_id": "foo"}]
    m.assert_has_calls(
        [
            mocker.call(config.data_path, mongo, "foo", 2),
            mocker.call(config.data_path, mongo, "bar", 10),
            mocker.call(config.data_path, mongo, "baz", 4),
        ]
    )