def METHOD_NAME():
    with pytest.raises(ConfigurationError) as exc:
        rc = InventoryConfig()
        inventories = ['/tmp/inventory1', '/tmp/inventory2']
        rc.prepare_inventory_command('host', inventories=inventories)
    assert "Value of host parameter is required when action in 'host'" == exc.value.args[0]