diff --git a/formencode/htmlfill.py b/formencode/htmlfill.py index b46c44ae..717e65a4 100644 --- a/formencode/htmlfill.py +++ b/formencode/htmlfill.py @@ -521,7 +521,7 @@ def handle_option(self, attrs): " + +""" + expected_html = """ + +""" + rendered_html = htmlfill.render(html, defaults={"select-1": ""}) + assert expected_html == rendered_html, rendered_html + +def test_select_empty_option_value_not_selected(): + html = """ + +""" + expected_html = """ + +""" + rendered_html = htmlfill.render(html, defaults={}) + assert expected_html == rendered_html, rendered_html + def test_script_quoting(): html = """