def test_find_january_note(self): student_performance = test_student_performance.create_student_performance( ) an_academic_yr = test_academic_year.create_academic_year_with_year( student_performance.academic_year) a_learning_unit_year = test_learning_unit_year.create_learning_unit_year( { 'acronym': 'LINGI2145', 'specific_title': TITLE, 'academic_year': an_academic_yr, 'weight': WEIGHT }) self.assertEqual( tutor_charge.get_sessions_results( student_performance.registration_id, a_learning_unit_year, student_performance.acronym), { tutor_charge.JANUARY: { tutor_charge.JSON_LEARNING_UNIT_NOTE: '13.0', tutor_charge.JSON_LEARNING_UNIT_STATUS: 'I' }, tutor_charge.JUNE: { tutor_charge.JSON_LEARNING_UNIT_NOTE: '13.0', tutor_charge.JSON_LEARNING_UNIT_STATUS: 'R' }, tutor_charge.SEPTEMBER: { tutor_charge.JSON_LEARNING_UNIT_NOTE: '-', tutor_charge.JSON_LEARNING_UNIT_STATUS: '-' } })
def test_get_student_performance_data_dict(self): student_performance = test_student_performance.create_student_performance( ) self.assertEqual( tutor_charge.get_student_data_dict(student_performance), student_performance.data)