def _setUpUnityLogging(self): self._unity_log_file_name = mktemp(prefix=self.shortDescription()) start_log_to_file(self._unity_log_file_name) self.addCleanup(self._tearDownUnityLogging)
def start_new_log_file(self): fpath = mktemp() start_log_to_file(fpath) return fpath