diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-14 14:57:58 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-14 14:57:58 +0000 |
| commit | 03a2f822c28a8449444af8037cb4665a48a5ad1f (patch) | |
| tree | 4aa031f4363961cf8efef64f43e125f9fe9fd0a0 /tests | |
| parent | 3f954497eba0ae33e17adfd127068dedf2bfa462 (diff) | |
Ignore empty text
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/html_generation_tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/html_generation_tests.py b/tests/html_generation_tests.py index 757ff62..94a8739 100644 --- a/tests/html_generation_tests.py +++ b/tests/html_generation_tests.py @@ -34,3 +34,13 @@ def elements_with_no_text_are_not_generator(): generator.end_all() assert_equal("", generator.html_string()) + +@istest +def elements_with_empty_string_text_are_not_generator(): + generator = HtmlGenerator() + generator.start("p") + generator.start("span") + generator.text("") + generator.end_all() + assert_equal("", generator.html_string()) + |
