- Timestamp:
- 23 Mar 2017, 06:09:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py
r14630 r14650 38 38 rsr = CustomRawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100) 39 39 result = rsr._get_courses('fac1', 'dep1', 'CERT1', 2010, 100) 40 self.assertEqual(result, [u'Course1']) 40 self.assertEqual(result, [self.certificate.values()[0]]) 41 self.assertEqual( 42 result, 43 [self.app['faculties']['fac1']['dep1'].certificates[ 44 'CERT1']['Course1_100']]) 41 45 return 42 46 … … 56 60 57 61 def test_create_pdf(self): 62 self.app['faculties']['fac1']['dep1'].certificates[ 63 'CERT1']['Course1_100'].course_category = 'xyz' 58 64 self.course2 = createObject('waeup.Course') 59 65 self.course2.code = 'Course2' … … 126 132 rsr = GradRawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100) 127 133 result = rsr._get_courses('fac1', 'dep1', 'CERT1', 2010, 100) 128 self.assertEqual(result, [u'Course1']) 134 self.assertEqual(result, [self.certificate.values()[0]]) 135 self.assertEqual( 136 result, 137 [self.app['faculties']['fac1']['dep1'].certificates[ 138 'CERT1']['Course1_100']]) 129 139 return 130 140 … … 151 161 def test_create_pdf(self): 152 162 self.certificate.end_level = 200 163 self.app['faculties']['fac1']['dep1'].certificates['CERT1']['Course1_100'].course_category = 'xyz' 153 164 self.course2 = createObject('waeup.Course') 154 165 self.course2.code = 'Course2'
Note: See TracChangeset for help on using the changeset viewer.