aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/html_generation_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/html_generation_tests.py b/tests/html_generation_tests.py
index 5978dfe..c637798 100644
--- a/tests/html_generation_tests.py
+++ b/tests/html_generation_tests.py
@@ -51,3 +51,9 @@ def elements_with_empty_string_text_are_not_generator():
generator.end_all()
assert_equal("", generator.html_string())
+
+@istest
+def self_closing_tag_can_have_attributes():
+ generator = HtmlGenerator()
+ generator.self_closing("br", {"data-blah": "42"})
+ assert_equal('<br data-blah="42" />', generator.html_string())