Changeset 9614 for main/waeup.kwarapoly
- Timestamp:
- 11 Nov 2012, 16:21:21 (12 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_utils.py
r9347 r9614 14 14 acc_details = students_utils.getAccommodationDetails(self.student) 15 15 self.assertEqual(acc_details['bt'], 'regular_male_fr') 16 16 17 self.student['studycourse'].current_level = 200 17 18 acc_details = students_utils.getAccommodationDetails(self.student) 18 19 self.assertEqual(acc_details['bt'], 'regular_male_re') 20 21 self.student['studycourse'].current_level = 210 22 acc_details = students_utils.getAccommodationDetails(self.student) 23 self.assertEqual(acc_details['bt'], 'regular_male_re') 24 19 25 self.student['studycourse'].current_level = 300 20 26 acc_details = students_utils.getAccommodationDetails(self.student) 21 27 self.assertEqual(acc_details['bt'], 'regular_male_fi') 28 22 29 self.student['studycourse'].current_level = 400 23 30 acc_details = students_utils.getAccommodationDetails(self.student) 24 self.assertEqual(acc_details['bt'], 'regular_male_fi') 31 self.assertEqual(acc_details['bt'], 'regular_male_fr') 32 25 33 self.student['studycourse'].current_level = 500 34 acc_details = students_utils.getAccommodationDetails(self.student) 35 self.assertEqual(acc_details['bt'], 'regular_male_re') 36 37 self.student['studycourse'].current_level = 510 38 acc_details = students_utils.getAccommodationDetails(self.student) 39 self.assertEqual(acc_details['bt'], 'regular_male_re') 40 41 self.student['studycourse'].current_level = 600 26 42 acc_details = students_utils.getAccommodationDetails(self.student) 27 43 self.assertEqual(acc_details['bt'], 'regular_male_fi') -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r9568 r9614 204 204 if current_level == 10: 205 205 bt = 'pr' 206 elif current_level == 100:206 elif current_level in (100, 400): 207 207 bt = 'fr' 208 elif current_level >= 300:208 elif current_level in (300, 600): 209 209 bt = 'fi' 210 210 else:
Note: See TracChangeset for help on using the changeset viewer.