def test_new_from_otg(self): templatename = getdatafile('template.otg') filename = getdatafile('newfromtemplate.odg') doc = _new_doc_from_template(filename, templatename) doc.save() self.assertTrue(check_zipfile_for_oasis_validity(filename, b"application/vnd.oasis.opendocument.graphics")) os.remove(filename)
def test_new_from_otg(self): templatename = getdatafile('template.otg') filename = getdatafile('newfromtemplate.odg') doc = _new_doc_from_template(filename, templatename) doc.save() self.assertTrue( check_zipfile_for_oasis_validity( filename, b"application/vnd.oasis.opendocument.graphics")) os.remove(filename)