Example #1
0
def test_expand_hostlist_unvalid():
    with pytest.raises(ValueError, match=r"hostlist unvalid"):
        _expand_hostlist("unvalid[]")
Example #2
0
def test_expand_hostlist(hostlist, expected):
    assert _expand_hostlist(hostlist) == expected.split(",")