コード例 #1
0
def test_widget_base_element_compile_not_autoclosing():
    b_elem = BaseElement(id='a')
    b_elem.html_tag = 'x'
    b_elem.content = "b"
    assert b_elem.compile() == '<x id="a">b</x>'
コード例 #2
0
def test_widget_base_element_compile_not_autoclosing():
    b_elem = BaseElement(id='a')
    b_elem.html_tag = 'x'
    b_elem.content = "b"
    assert b_elem.compile() == '<x id="a">b</x>'
コード例 #3
0
def test_widget_base_element_compile_autoclosing():
    b_elem = BaseElement(id='a')
    b_elem.html_tag = "x"
    b_elem.autoclosing = True
    assert b_elem.compile() == '<x id="a">'
コード例 #4
0
def test_widget_base_element_compile_autoclosing():
    b_elem = BaseElement(id='a')
    b_elem.html_tag = "x"
    b_elem.autoclosing = True
    assert b_elem.compile() == '<x id="a">'