Changeset 15344 for main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/tests/test_utils.py
- Timestamp:
- 6 Mar 2019, 21:21:38 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/tests/test_utils.py
r15284 r15344 36 36 site['configuration'].next_matric_integer_2 = 1 37 37 site['configuration'].next_matric_integer_3 = 1 38 site['configuration'].next_matric_integer_4 = 139 38 self.student.matric_number = None 40 39 # nd_ft … … 42 41 msg, mnumber = utils.setMatricNumber(self.student) 43 42 self.assertEqual(self.student.matric_number, 'fac1/ND/04/00001') 43 self.assertEqual(site['configuration'].next_matric_integer, 2) 44 44 self.assertEqual(msg, None) 45 45 # hnd_ft … … 48 48 msg, mnumber = utils.setMatricNumber(self.student) 49 49 self.assertEqual(self.student.matric_number, 'fac1/HD/04/00001') 50 self.assertEqual(site['configuration'].next_matric_integer_2, 2) 50 51 self.assertEqual(msg, None) 51 52 # nd_pt … … 54 55 msg, mnumber = utils.setMatricNumber(self.student) 55 56 self.assertEqual(self.student.matric_number, 'fac1/PT/04/00001') 57 self.assertEqual(site['configuration'].next_matric_integer_3, 2) 56 58 self.assertEqual(msg, None) 57 59 return
Note: See TracChangeset for help on using the changeset viewer.