Changeset 7691 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 23 Feb 2012, 15:53:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_vocabularies.py
r7625 r7691 37 37 self.assertEqual(values, [100, 110, 120, 200, 210, 220, 300, 310, 320, 38 38 400, 410, 420, 500, 510, 520, 600, 610, 620]) 39 # Unfortunately, unittests don't know about internationalization 39 40 self.assertEqual(studylevelsource.getTitle(studycourse, None), 40 'Error: level id Noneout of range')41 'Error: level id ${value} out of range') 41 42 self.assertEqual(studylevelsource.getTitle(studycourse, 0), 42 'Error: level id 0out of range')43 'Error: level id ${value} out of range') 43 44 self.assertEqual(studylevelsource.getTitle(studycourse, 10), 44 'Error: level id 10out of range')45 'Error: level id ${value} out of range') 45 46 self.assertEqual(studylevelsource.getTitle(studycourse, 100), 46 47 '100 (Year 1)') 47 48 self.assertEqual(studylevelsource.getTitle(studycourse, 110), 48 ' 100 (Year 1)on 1st probation')49 '${title} on 1st probation') 49 50 self.assertEqual(studylevelsource.getTitle(studycourse, 120), 50 ' 100 (Year 1)on 2nd probation')51 '${title} on 2nd probation') 51 52 self.assertEqual(studylevelsource.getTitle(studycourse, 500), 52 53 '500 (Year 5)') 53 54 self.assertEqual(studylevelsource.getTitle(studycourse, 600), 54 ' 500 (Year 5)1st spillover')55 '${title} 1st spillover') 55 56 self.assertEqual(studylevelsource.getTitle(studycourse, 610), 56 ' 500 (Year 5)2nd spillover')57 '${title} 2nd spillover') 57 58 self.assertEqual(studylevelsource.getTitle(studycourse, 620), 58 ' 500 (Year 5)3rd spillover')59 '${title} 3rd spillover') 59 60 self.assertEqual(studylevelsource.getTitle(studycourse, 630), 60 'Error: level id 630out of range')61 'Error: level id ${value} out of range') 61 62 self.assertEqual(studylevelsource.getTitle(studycourse, 700), 62 'Error: level id 700out of range')63 'Error: level id ${value} out of range') 63 64 # Now we change the certificates start_level to pre-studies 64 65 studycourse.certificate.start_level = 10
Note: See TracChangeset for help on using the changeset viewer.