def test_invalid_service_name(string, exc_ty): with pytest.raises(exc_ty): check_plugins._validate_service_name("", string)
def test_valid_service_name(string): check_plugins._validate_service_name("", string)
def test_valid_service_name(string): check_plugins._validate_service_name(CheckPluginName("test"), string)