def test_bad_args() -> None:
    """Test zero valued arguments in greedy router."""
    circuit = cirq.testing.random_circuit(4, 2, 0.5, random_state=5)
    device_graph = ccr.get_grid_device_graph(3, 2)
    with pytest.raises(ValueError):
        route_circuit_greedily(circuit, device_graph, max_search_radius=0)

    with pytest.raises(ValueError):
        route_circuit_greedily(circuit, device_graph, max_num_empty_steps=0)
Test zero valued arguments in greedy router.
cirq-core/cirq/contrib/routing/greedy_test.py