Esempio n. 1
0
def test_invalid_padded_range_dup_fails():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{001..002..004}"])
Esempio n. 2
0
def test_padded_expand_range():
    assert ['001', '003'] == Host.expand_with(['{001..003/2}'])
Esempio n. 3
0
def test_invalid_range_dup_fails():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{1..2..4}"])
Esempio n. 4
0
def test_invalid_range_nonint_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{1..cat}'])
Esempio n. 5
0
def test_expand_range():
    assert ['1', '3'] == Host.expand_with(['{1..3/2}'])
Esempio n. 6
0
def test_expand():
    assert ["1", "2", "3"] == Host.expand_with(["{1..3}"])
Esempio n. 7
0
def test_expand_range():
    assert ["1", "3"] == Host.expand_with(["{1..3/2}"])
Esempio n. 8
0
def test_invalid_padded_range_dup_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{001..002..004}'])
Esempio n. 9
0
def test_invalid_padded_range_nonint_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{001..cat}'])
Esempio n. 10
0
def test_expand_range():
    assert ['1', '3'] == Host.expand_with(['{1..3/2}'])
Esempio n. 11
0
def test_padded_expand_range():
    assert ['001', '003'] == Host.expand_with(['{001..003/2}'])
Esempio n. 12
0
def test_padded_expand():
    assert ['001', '002', '003'] == Host.expand_with(['{001..003}'])
Esempio n. 13
0
def test_expand():
    assert ['1', '2', '3'] == Host.expand_with(['{1..3}'])
Esempio n. 14
0
def test_invalid_range_empty():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{}'])
Esempio n. 15
0
def test_invalid_padded_range_nonint_fails():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{001..cat}"])
Esempio n. 16
0
def test_invalid_range_empty():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{}'])
Esempio n. 17
0
def test_invalid_range_empty():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{}"])
Esempio n. 18
0
def test_expand():
    assert ['1', '2', '3'] == Host.expand_with(['{1..3}'])
Esempio n. 19
0
def test_padded_expand():
    assert ["001", "002", "003"] == Host.expand_with(["{001..003}"])
Esempio n. 20
0
def test_padded_expand():
    assert ['001', '002', '003'] == Host.expand_with(['{001..003}'])
Esempio n. 21
0
def test_padded_expand_range():
    assert ["001", "003"] == Host.expand_with(["{001..003/2}"])
Esempio n. 22
0
def test_invalid_range_dup_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{1..2..4}'])