def test_bad1():
    with pytest.raises(ValueError):
        integer.parse("bad input")
def test_bad2():
    integer.parse("1-2,3-5")
Exemplo n.º 3
0
def test_integer():
    assert integer.parse("1,3,5,9") == [1, 3, 5, 9]