We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02dc56 commit 71f5858Copy full SHA for 71f5858
tests/basic_rendering_test.py
@@ -87,14 +87,23 @@ def test_call_adds_attrs():
87
def test_call_adds_children():
88
"""Calling a tag adds additional children"""
89
# Note that order is important again
90
- assert str(html("Hello", "World")) == '\n'.join([
+ assert str(html("Hello")("World")) == '\n'.join([
91
'<html>',
92
' Hello',
93
' World',
94
'</html>',
95
])
96
97
98
+def test_call_adds_mixed_attrs_children():
99
+ """Calling a tag adds more properties"""
100
+ assert str(html(foo="bar")("Hello")) == "\n".join([
101
+ '<html foo="bar">',
102
+ ' Hello',
103
+ '</html>',
104
+ ])
105
+
106
107
def test_tags_with_trailing_undercore_render_without():
108
"""
109
Some tags have a trailing underscore to avoid name collisions. When
0 commit comments