- Timestamp:
- 16 Nov 2012, 21:43:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_reports.py
r9633 r9647 1 1 # Tests for student related reports 2 from waeup.kofa.students.reports import get_students_by_session, StudentReport 2 from waeup.kofa.students.reports import ( 3 get_students_by, StudentReport) 3 4 from waeup.kofa.students.tests.test_catalog import CatalogTestSetup 4 5 from waeup.kofa.testing import FunctionalLayer … … 14 15 def test_get_students_by_session_simple(self): 15 16 # we can get a table with one student 16 result1 = get_students_by _session(2010)17 result2 = get_students_by _session(2009)17 result1 = get_students_by(2010, 'Undergraduate Full-Time') 18 result2 = get_students_by(2009, 'Undergraduate Full-Time') 18 19 self.assertEqual( 19 20 result1, … … 33 34 # we can get a table with several students 34 35 self.create_cert('fac2', 'dept2', 'CERT2') 35 result1 = get_students_by _session(2010)36 result2 = get_students_by _session(2009)36 result1 = get_students_by(2010, 'Undergraduate Full-Time') 37 result2 = get_students_by(2009, 'Undergraduate Full-Time') 37 38 self.assertEqual( 38 39 result1, … … 53 54 def test_create_pdf(self): 54 55 self.create_cert('FAC2', 'dept2', 'CERT2') 55 report = StudentReport(2010 )56 report = StudentReport(2010, 'Undergraduate Full-Time') 56 57 result = report.create_pdf() 57 58 self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.