def METHOD_NAME(tmpdir, mocker):
    mocker.patch(
        "cekit.generator.base.platform.machine", return_value="current_platform"
    )
    mock_odcs_new_compose = mocker.patch(
        "odcs.client.odcs.ODCS.new_compose", return_value=odcs_fake_invalid_resp
    )
    mock_odcs_wait_for_compose = mocker.patch(
        "odcs.client.odcs.ODCS.wait_for_compose", return_value=odcs_fake_invalid_resp
    )
    with docker_generator(tmpdir) as generator:
        generator.image = {"osbs": {"configuration": {"container": {"compose": {}}}}}
        with cekit_config(redhat=True):
            with pytest.raises(CekitError, match=r"Cannot create ODCS compose: '.*'"):
                generator._prepare_content_sets({"current_platform": ["ca1", "cs2"]})
    mock_odcs_new_compose.assert_called_once_with("ca1 cs2", "pulp", flags=[])
    mock_odcs_wait_for_compose.assert_called_once_with(1, timeout=600)