def setUp(self): self.table = createTable(TABLE_NAME) self._addColumn(COLUMN1, cells=COLUMN1_CELLS) self.column_a = self._addColumn(COLUMN2, cells=COLUMN2_CELLS) self.column_b = self._addColumn(COLUMNB, cells=COLUMNB_CELLS) self.column_c = self._addColumn(COLUMNC, cells=COLUMNC_CELLS) self.column_valid_formula = self._addColumn(COLUMN_VALID_FORMULA, formula=VALID_FORMULA) api_util.writeObjectToFile(self.table) self.evaluator = TableEvaluator(self.table)
def setUp(self): """ Creates the following structure: DUMMY_TABLE row: DUMMY1: A: B: C: VALID_FORMULA: """ self.table = createTable(TABLE_NAME) self._addColumn(COLUMN1, cells=COLUMN1_CELLS) self.column_a = self._addColumn(COLUMN2, cells=COLUMN2_CELLS) self.column_b = self._addColumn(COLUMNB, cells=COLUMNB_CELLS) self.column_c = self._addColumn(COLUMNC, cells=COLUMNC_CELLS) self.column_valid_formula = self._addColumn(COLUMN_VALID_FORMULA, formula=VALID_FORMULA) api_util.writeObjectToFile(self.table) self.evaluator = TableEvaluator(self.table)
def updateTableFile(self): api_util.writeObjectToFile(self._table)