- Timestamp:
- 8 Feb 2017, 07:38:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_student_payment_statistics.py
r14373 r14513 22 22 # ensure we fullfill interface contracts 23 23 obj = StudentPaymentStatisticsReport( 24 2010, 'Undergraduate Full-Time', 0, 'faccode')24 2010, 'Undergraduate Full-Time', 0, 0, 0, 'faccode') 25 25 verifyClass(IStudentPaymentStatisticsReport, StudentPaymentStatisticsReport) 26 26 verifyObject(IStudentPaymentStatisticsReport, obj) … … 30 30 # we can get a table with one student 31 31 result1 = get_student_payment_stats( 32 2010, 'Undergraduate Full-Time', 0, 'faccode')32 2010, 'Undergraduate Full-Time', 0, 0, 0, 'faccode') 33 33 result2 = get_student_payment_stats( 34 2009, 'Undergraduate Full-Time', 0, 'faccode')34 2009, 'Undergraduate Full-Time', 0, 0, 0, 'faccode') 35 35 self.assertEqual( 36 36 result1, … … 55 55 def test_create_pdf(self): 56 56 report = StudentPaymentStatisticsReport( 57 2010, 'Undergraduate Full-Time', 0, 'faccode')57 2010, 'Undergraduate Full-Time', 0, 0, 0, 'faccode') 58 58 result = report.create_pdf('JOB_ID') 59 59 self.assertTrue(result.startswith('%PDF-')) … … 106 106 'application/pdf') 107 107 self.assertTrue( 108 'filename="StudentPaymentStatisticsReport_ 2004_2005_All__'in108 'filename="StudentPaymentStatisticsReport_rno%s' % job_id in 109 109 self.browser.headers['content-disposition']) 110 110 self.assertEqual(len(self.app['reports'].running_report_jobs), 1) 111 job_id = self.app['reports'].running_report_jobs[0][0]112 111 # ... and discarded 113 112 self.browser.open('http://localhost/app/reports') … … 120 119 self.assertTrue( 121 120 'INFO - zope.mgr - students.reports.student_payment_statistics.StudentPaymentStatisticsReportGeneratorPage - ' 122 'report %s created: Student Payment Statistics (session=2004, mode=All, level=0, breakdown=depcode)' 121 'report %s created: Student Payment Statistics ' 122 '(session=2004, mode=All, level=0, entry_session=0, ' 123 'p_session=0, breakdown=depcode)' 123 124 % job_id in logcontent 124 125 ) 125 126 self.assertTrue( 126 127 'INFO - zope.mgr - students.reports.student_payment_statistics.StudentPaymentStatisticsReportPDFView - ' 127 'report %s downloaded: StudentPaymentStatisticsReport_ 2004_2005_All__'128 % job_idin logcontent128 'report %s downloaded: StudentPaymentStatisticsReport_rno%s_' 129 % (job_id, job_id) in logcontent 129 130 ) 130 131 self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.