def METHOD_NAME(user_input):
    test_error_message = "enter something"
    validator = io_utils.not_empty_validator(test_error_message)
    document = Document(user_input)
    with pytest.raises(ValidationError) as e:
        validator.validate(document)
    assert e.value.message == test_error_message