Changeset 14707 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 28 Jun 2017, 05:28:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14701 r14707 430 430 self.browser.open(self.edit_scores_url) 431 431 self.assertTrue('No student found' in self.browser.contents) 432 pdf_url = '%s/coursetickets.pdf' % self.course_url 433 self.browser.open(pdf_url) 434 self.assertEqual(self.browser.headers['Status'], '200 Ok') 435 self.assertEqual( 436 self.browser.headers['Content-Type'], 'application/pdf') 437 path = os.path.join(samples_dir(), 'coursetickets_filtered.pdf') 438 open(path, 'wb').write(self.browser.contents) 439 print "Sample PDF coursetickets_filtered.pdf written to %s" % path 432 440 self.app['configuration']['2004'].score_editing_enabled = ['ug_ft'] 433 441 self.browser.open(self.edit_scores_url)
Note: See TracChangeset for help on using the changeset viewer.