Changeset 14075 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 13 Aug 2016, 03:23:04 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14000 r14075 145 145 # sgpa = 82 / 23 146 146 self.assertEqual(self.student['studycourse']['100'].gpa_params[0], 3.565) 147 return 148 149 def test_grade_weight(self): 150 studylevel = createObject(u'waeup.StudentStudyLevel') 151 studylevel.level = 100 152 studylevel.level_session = 2005 153 self.student['studycourse'].entry_mode = 'ug_ft' 154 self.student['studycourse'].addStudentStudyLevel( 155 self.certificate, studylevel) 156 studylevel['COURSE1'].score = 42 157 studylevel['COURSE1'].ca = 0 158 courseticket = createObject('waeup.CourseTicket') 159 self.assertEqual(studylevel['COURSE1'].weight, 1) 160 self.assertEqual(studylevel['COURSE1'].grade, 'E') 161 self.student['studycourse'].entry_session = 2015 162 self.assertEqual(studylevel['COURSE1'].weight, 0) 163 self.assertEqual(studylevel['COURSE1'].grade, 'F') 164 studylevel['COURSE1'].score = 45 165 self.assertEqual(studylevel['COURSE1'].weight, 2) 166 self.assertEqual(studylevel['COURSE1'].grade, 'D') 147 167 return 148 168
Note: See TracChangeset for help on using the changeset viewer.