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


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