def test_get_parent_form_3up(self): """test recursive search of form""" div = HtmlDiv() form = div.form(id_html="1level") div_1sub = form.div() div_2sub = div_1sub.div() div_3sub = div_2sub.div() assert div_3sub.get_form() == form
def test_get_parent_form_1up(self): div = HtmlDiv() form = div.form(id_html="1level") div_sub = form.div() assert div_sub.get_form() == form