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>'
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>'
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">'
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">'