def test_update_ranges_bad_product(runner, product_name):
    result = runner.invoke(main, ['not_a_real_product_name'])
    assert ('not_a_real_product_name' in result.output)
    assert ('Unrecognised product name' in result.output)
    assert (result.exit_code == 1)
def test_update_ranges_bad_product(runner, product_name):
    result = runner.invoke(main, ['not_a_real_product_name'])
    assert ('not_a_real_product_name' in result.output)
    assert ('Unrecognised product name' in result.output)
    assert (result.exit_code == 1)