Exemple #1
0
 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)
Exemple #2
0
 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)