def test_icon__valid(value): actual = config_validation.icon(value) assert actual == value
def test_icon__invalid(): with pytest.raises(Invalid, match="Icons should start with prefix"): config_validation.icon("foo")
def test_icon__invalid(): with pytest.raises(Invalid, match="Icons must match the format "): config_validation.icon("foo")