Changeset 16058 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 18 Apr 2020, 16:42:14 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r15943 r16058 38 38 from zope.testbrowser.testing import Browser 39 39 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 40 from waeup.kofa.browser.tests.test_pdf import samples_dir 40 41 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 41 42 from waeup.kofa.app import University … … 1723 1724 self.browser.url, self.view_path + '/%s' % report.r_id) 1724 1725 self.assertTrue('John Referee' in self.browser.contents) 1726 # Managers can download a pdf slip 1727 self.browser.getLink("Download report").click() 1728 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1729 self.assertEqual(self.browser.headers['Content-Type'], 1730 'application/pdf') 1731 path = os.path.join(samples_dir(), 'referee_report_slip.pdf') 1732 open(path, 'wb').write(self.browser.contents) 1733 print "Sample PDF referee_report_slip.pdf written to %s" % path 1725 1734 # Report creation is logged 1726 1735 logfile = os.path.join(
Note: See TracChangeset for help on using the changeset viewer.