コード例 #1
0
def test_invalid_padded_range_dup_fails():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{001..002..004}"])
コード例 #2
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_padded_expand_range():
    assert ['001', '003'] == Host.expand_with(['{001..003/2}'])
コード例 #3
0
def test_invalid_range_dup_fails():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{1..2..4}"])
コード例 #4
0
def test_invalid_range_nonint_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{1..cat}'])
コード例 #5
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_expand_range():
    assert ['1', '3'] == Host.expand_with(['{1..3/2}'])
コード例 #6
0
def test_expand():
    assert ["1", "2", "3"] == Host.expand_with(["{1..3}"])
コード例 #7
0
def test_expand_range():
    assert ["1", "3"] == Host.expand_with(["{1..3/2}"])
コード例 #8
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_invalid_padded_range_dup_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{001..002..004}'])
コード例 #9
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_invalid_padded_range_nonint_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{001..cat}'])
コード例 #10
0
def test_expand_range():
    assert ['1', '3'] == Host.expand_with(['{1..3/2}'])
コード例 #11
0
def test_padded_expand_range():
    assert ['001', '003'] == Host.expand_with(['{001..003/2}'])
コード例 #12
0
def test_padded_expand():
    assert ['001', '002', '003'] == Host.expand_with(['{001..003}'])
コード例 #13
0
def test_expand():
    assert ['1', '2', '3'] == Host.expand_with(['{1..3}'])
コード例 #14
0
def test_invalid_range_empty():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{}'])
コード例 #15
0
def test_invalid_padded_range_nonint_fails():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{001..cat}"])
コード例 #16
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_invalid_range_empty():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{}'])
コード例 #17
0
def test_invalid_range_empty():
    with pytest.raises(ParserException) as _:
        Host.expand_with(["{}"])
コード例 #18
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_expand():
    assert ['1', '2', '3'] == Host.expand_with(['{1..3}'])
コード例 #19
0
def test_padded_expand():
    assert ["001", "002", "003"] == Host.expand_with(["{001..003}"])
コード例 #20
0
ファイル: test_sedge.py プロジェクト: grahame/sedge
def test_padded_expand():
    assert ['001', '002', '003'] == Host.expand_with(['{001..003}'])
コード例 #21
0
def test_padded_expand_range():
    assert ["001", "003"] == Host.expand_with(["{001..003/2}"])
コード例 #22
0
def test_invalid_range_dup_fails():
    with pytest.raises(ParserException) as e_info:
        Host.expand_with(['{1..2..4}'])