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