Exemple #1
0
def test_dash():
    result = parse('1-3')
    assert result == [1, 2, 3]
Exemple #2
0
def test_bad():
    with pytest.raises(ValueError):
        parse('bad')


#TODO - create testing for this cool new function!
Exemple #3
0
def test_basic():
    result = parse('1,3')
    assert result == [1, 3]
def test_bad():
    with pytest.raises(ValueError):
        parse('bad')