- Timestamp:
- 6 Mar 2019, 21:33:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py
r15288 r15345 42 42 msg, mnumber = utils.setMatricNumber(self.student) 43 43 self.assertEqual(self.student.matric_number, 'dep1/ND/04/00001') 44 self.assertEqual(site['configuration'].next_matric_integer, 2) 44 45 self.assertEqual(msg, None) 45 46 # hnd_ft … … 48 49 msg, mnumber = utils.setMatricNumber(self.student) 49 50 self.assertEqual(self.student.matric_number, 'dep1/HND/04/00001') 51 self.assertEqual(site['configuration'].next_matric_integer_2, 2) 50 52 self.assertEqual(msg, None) 51 53 # nd_pt … … 54 56 msg, mnumber = utils.setMatricNumber(self.student) 55 57 self.assertEqual(self.student.matric_number, 'dep1/ND/04/10001') 58 self.assertEqual(site['configuration'].next_matric_integer_3, 10002) 56 59 self.assertEqual(msg, None) 57 60 # hnd_pt … … 60 63 msg, mnumber = utils.setMatricNumber(self.student) 61 64 self.assertEqual(self.student.matric_number, 'dep1/HND/04/10001') 65 self.assertEqual(site['configuration'].next_matric_integer_4, 10002) 62 66 self.assertEqual(msg, None) 63 67 return
Note: See TracChangeset for help on using the changeset viewer.