def test_update_ranges_misuse_cases(runner, role_name, product_name):
    result = runner.invoke(main, ['--schema'])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
    result = runner.invoke(main, ['--role', role_name])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
    result = runner.invoke(main, ['--views', product_name])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
    result = runner.invoke(main, ['--schema', product_name])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
def test_update_ranges_misuse_cases(runner, role_name, product_name):
    result = runner.invoke(main, ['--schema'])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
    result = runner.invoke(main, ['--role', role_name])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
    result = runner.invoke(main, ['--views', product_name])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)
    result = runner.invoke(main, ['--schema', product_name])
    assert ('Sorry' in result.output)
    assert (result.exit_code == 1)