- Timestamp:
- 29 Aug 2013, 09:52:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py
r10553 r10557 5 5 from waeup.kofa.interfaces import IJobManager 6 6 from waeup.kofa.students.reports.level_report import ( 7 get_students_by )7 get_students_by, LevelReport) 8 8 from waeup.kofa.students.tests.test_catalog import CatalogTestSetup 9 9 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 10 10 from waeup.kofa.testing import FunctionalLayer 11 11 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase 12 from waeup.kofa.browser.tests.test_pdf import samples_dir 12 13 13 14 class LevelReportTests(CatalogTestSetup): … … 21 22 [(u'K1000000', u'1234', u'Bob Tester', 30, 30, 5.0, [])]) 22 23 return 24 25 def test_create_pdf(self): 26 report = LevelReport('fac1', 'dep1', 2010, 100) 27 result = report.create_pdf() 28 self.assertTrue(result.startswith('%PDF-')) 29 path = os.path.join(samples_dir(), 'level_report.pdf') 30 open(path, 'wb').write(result) 31 print "Sample level_report.pdf written to %s" % path 32 return
Note: See TracChangeset for help on using the changeset viewer.