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


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