def _generate_xls_build_parameter(xls_data, user): return { xls_build.LIST_DESCRIPTION_KEY: _(XLS_DESCRIPTION), xls_build.FILENAME_KEY: _(XLS_FILENAME), xls_build.USER_KEY: user.username, xls_build.WORKSHEETS_DATA: [{ xls_build.CONTENT_KEY: xls_data, xls_build.HEADER_TITLES_KEY: learning_unit_titles(), xls_build.WORKSHEET_TITLE_KEY: _(WORKSHEET_TITLE), xls_build.STYLED_CELLS: None, xls_build.COLORED_ROWS: None, }] }
def test_learning_unit_titles(self): self.assertEqual(learning_unit_titles(), basic_titles() + components_titles())