def test_invalid_padded_range_dup_fails(): with pytest.raises(ParserException) as _: Host.expand_with(["{001..002..004}"])
def test_padded_expand_range(): assert ['001', '003'] == Host.expand_with(['{001..003/2}'])
def test_invalid_range_dup_fails(): with pytest.raises(ParserException) as _: Host.expand_with(["{1..2..4}"])
def test_invalid_range_nonint_fails(): with pytest.raises(ParserException) as e_info: Host.expand_with(['{1..cat}'])
def test_expand_range(): assert ['1', '3'] == Host.expand_with(['{1..3/2}'])
def test_expand(): assert ["1", "2", "3"] == Host.expand_with(["{1..3}"])
def test_expand_range(): assert ["1", "3"] == Host.expand_with(["{1..3/2}"])
def test_invalid_padded_range_dup_fails(): with pytest.raises(ParserException) as e_info: Host.expand_with(['{001..002..004}'])
def test_invalid_padded_range_nonint_fails(): with pytest.raises(ParserException) as e_info: Host.expand_with(['{001..cat}'])
def test_padded_expand(): assert ['001', '002', '003'] == Host.expand_with(['{001..003}'])
def test_expand(): assert ['1', '2', '3'] == Host.expand_with(['{1..3}'])
def test_invalid_range_empty(): with pytest.raises(ParserException) as e_info: Host.expand_with(['{}'])
def test_invalid_padded_range_nonint_fails(): with pytest.raises(ParserException) as _: Host.expand_with(["{001..cat}"])
def test_invalid_range_empty(): with pytest.raises(ParserException) as _: Host.expand_with(["{}"])
def test_padded_expand(): assert ["001", "002", "003"] == Host.expand_with(["{001..003}"])
def test_padded_expand_range(): assert ["001", "003"] == Host.expand_with(["{001..003/2}"])
def test_invalid_range_dup_fails(): with pytest.raises(ParserException) as e_info: Host.expand_with(['{1..2..4}'])