- Timestamp:
- 30 May 2016, 14:32:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_student_level_statistics.py
r13860 r13870 23 23 def test_iface(self): 24 24 # ensure we fullfill interface contracts 25 obj = StudentLevelStatisticsReport(2010, ' faccode')25 obj = StudentLevelStatisticsReport(2010, 'Undergraduate Full-Time', 'faccode') 26 26 verifyClass(IStudentLevelStatisticsReport, StudentLevelStatisticsReport) 27 27 verifyObject(IStudentLevelStatisticsReport, obj) … … 32 32 self.student.sex = 'm' 33 33 # we can get a table with one student 34 result1 = get_student_stats(2010, ' faccode')35 result2 = get_student_stats(2009, ' faccode')34 result1 = get_student_stats(2010, 'Undergraduate Full-Time', 'faccode') 35 result2 = get_student_stats(2009, 'Undergraduate Full-Time', 'faccode') 36 36 self.assertEqual( 37 37 result1, … … 54 54 self.create_cert(u'fac2', u'dep2', u'CERT2') 55 55 self.student.sex = 'm' 56 result1 = get_student_stats(2010, ' faccode')57 result2 = get_student_stats(2009, ' faccode')56 result1 = get_student_stats(2010, 'Undergraduate Full-Time', 'faccode') 57 result2 = get_student_stats(2009, 'Undergraduate Full-Time', 'faccode') 58 58 self.assertEqual( 59 59 result1, … … 78 78 self.create_cert(u'fac2', u'dep2', u'CERT2') 79 79 self.student.sex = 'm' 80 result1 = get_student_stats(2010, ' depcode')81 result2 = get_student_stats(2009, ' depcode')80 result1 = get_student_stats(2010, 'Undergraduate Full-Time', 'depcode') 81 result2 = get_student_stats(2009, 'Undergraduate Full-Time', 'depcode') 82 82 self.assertEqual( 83 83 result1, … … 102 102 self.create_cert(u'FAC2', u'dept2', u'CERT2') 103 103 self.student['studycourse'].current_level = 220 104 report = StudentLevelStatisticsReport(2010, ' depcode')104 report = StudentLevelStatisticsReport(2010, 'Undergraduate Full-Time', 'depcode') 105 105 result = report.create_pdf() 106 106 self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.