def add_p(self): """ Return a new <w:p> element that has been added at the end of any existing body content. """ p = CT_P.new() return self._append_blocklevelelt(p)
def it_can_construct_a_new_p_element(self): p = CT_P.new() expected_xml = a_p().with_nsdecls().xml() assert p.xml == expected_xml