Changeset 10556 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 29 Aug 2013, 09:51:15 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_pdf.py
r10259 r10556 316 316 return tmp_dir 317 317 318 def draw_sample_pdf(data, name='s ample1.pdf',318 def draw_sample_pdf(data, name='signatures.pdf', 319 319 title='Sample Title', author='Test Author'): 320 320 # create a pdf document with data as content -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_student_statistics.py
r10551 r10556 11 11 from waeup.kofa.testing import FunctionalLayer 12 12 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase 13 from waeup.kofa.browser.tests.test_pdf import samples_dir 13 14 14 15 class StudentStatisticsReportTests(CatalogTestSetup): … … 72 73 result = report.create_pdf() 73 74 self.assertTrue(result.startswith('%PDF-')) 75 path = os.path.join(samples_dir(), 'student_statistics.pdf') 76 open(path, 'wb').write(result) 77 print "Sample PDF student_statistics.pdf written to %s" % path 74 78 return 75 79
Note: See TracChangeset for help on using the changeset viewer.