def setUp(self): """Set up a new document to hold the tests. This is executed before every test, so we create a document to hold the objects. """ aux._draw_header() self.doc_name = self.__class__.__name__ if App.ActiveDocument: if App.ActiveDocument.Name != self.doc_name: App.newDocument(self.doc_name) else: App.newDocument(self.doc_name) App.setActiveDocument(self.doc_name) self.doc = App.ActiveDocument _msg(" Temporary document '{}'".format(self.doc_name))
def setUp(self): aux._draw_header()