def test_create_complex_section(self): """The idea is to test with all possible arguments. If some arguments are contradictory or trigger different behaviours, test all those combinations separately. """ element = odf_create_section(style='Standard') excepted = '<text:section text:style-name="Standard"/>' self.assertEqual(element.serialize(), excepted)
def test_create_simple_section(self): """The idea is to test only with the mandatory arguments (none in this case), not to test odf_create_element which is done in test_xmlpart. """ element = odf_create_section() excepted = '<text:section/>' self.assertEqual(element.serialize(), excepted)