Skip to content

Commit 71f5858

Browse files
Add another test to ensure correctness
1 parent d02dc56 commit 71f5858

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/basic_rendering_test.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,23 @@ def test_call_adds_attrs():
8787
def test_call_adds_children():
8888
"""Calling a tag adds additional children"""
8989
# Note that order is important again
90-
assert str(html("Hello", "World")) == '\n'.join([
90+
assert str(html("Hello")("World")) == '\n'.join([
9191
'<html>',
9292
' Hello',
9393
' World',
9494
'</html>',
9595
])
9696

9797

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+
98107
def test_tags_with_trailing_undercore_render_without():
99108
"""
100109
Some tags have a trailing underscore to avoid name collisions. When

0 commit comments

Comments
 (0)