def test_drawing_type(self): self.assert_(odf_new_container_from_type('drawing'))
def test_presentation_type(self): self.assert_(odf_new_container_from_type('presentation'))
def test_text_type(self): self.assert_(odf_new_container_from_type('text'))
def test_spreadsheet_type(self): self.assert_(odf_new_container_from_type('spreadsheet'))
def test_clone(self): container = odf_new_container_from_type('text') clone = container.clone() self.assertEqual(clone.uri, None) self.assertNotEqual(clone._odf_container__data, None)