- Timestamp:
- 2 Feb 2017, 08:15:48 (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
r14483 r14496 8 8 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase 9 9 from waeup.kofa.browser.tests.test_pdf import samples_dir 10 11 from waeup.aaue.students.reports.raw_score_report import ( 12 get_students, RawScoreReport, IRawScoreReport, 13 get_courses) 10 from waeup.kofa.students.reports.raw_score_report import ( 11 get_students, IRawScoreReport, get_courses) 12 from waeup.aaue.students.reports.raw_score_report import CustomRawScoreReport 14 13 from waeup.aaue.testing import FunctionalLayer 15 14 … … 22 21 self.course = createObject('waeup.Course') 23 22 self.course.code = 'Course1' 23 self.course.credits = 25 24 24 self.app['faculties']['fac1']['dep1'].courses.addCourse( 25 25 self.course) … … 29 29 def test_iface(self): 30 30 # ensure we fullfill interface contracts 31 obj = RawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100)32 verifyClass(IRawScoreReport, RawScoreReport)31 obj = CustomRawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100) 32 verifyClass(IRawScoreReport, CustomRawScoreReport) 33 33 verifyObject(IRawScoreReport, obj) 34 34 return … … 56 56 self.course = createObject('waeup.Course') 57 57 self.course.code = 'Course2' 58 self.course.credits = 30 58 59 self.app['faculties']['fac1']['dep1'].courses.addCourse( 59 60 self.course) … … 72 73 self.student.firstname = u'Osahenokese Tessy' 73 74 self.student.lastname = u'Emwinyomwanru' 74 report = RawScoreReport('fac1', 'dep1', 'CERT1', 2011, 200)75 report = CustomRawScoreReport('fac1', 'dep1', 'CERT1', 2011, 200) 75 76 result = report.create_pdf('JOB_ID') 76 77 self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.