diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-14 15:00:18 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-14 15:00:18 +0000 |
| commit | f5af218e186ff49e0c277f75668c1256be9cd861 (patch) | |
| tree | 59b7fedea9f58e358b7b461879666a1725cda17c /tests | |
| parent | 03a2f822c28a8449444af8037cb4665a48a5ad1f (diff) | |
Add self-closing tags
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/html_generation_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/html_generation_tests.py b/tests/html_generation_tests.py index 94a8739..5978dfe 100644 --- a/tests/html_generation_tests.py +++ b/tests/html_generation_tests.py @@ -17,6 +17,13 @@ def html_escapes_text(): @istest +def self_closing_tag_is_self_closing(): + generator = HtmlGenerator() + generator.self_closing("br") + assert_equal("<br />", generator.html_string()) + + +@istest def all_elements_are_closed_by_end_all(): generator = HtmlGenerator() generator.start("p") |
