- Timestamp:
- 7 May 2019, 06:38:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r15371 r15401 480 480 self.assertEqual(self.browser.headers['Status'], '200 Ok') 481 481 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 482 path = os.path.join(samples_dir(), 'course_registration_slip.pdf') 483 open(path, 'wb').write(self.browser.contents) 484 print "Sample PDF course_registration_slip.pdf written to %s" % path 485 # Students can always download pdf course result slip 486 self.browser.open( 487 self.student_path + '/studycourse/100/course_result_slip.pdf') 488 self.assertEqual(self.browser.headers['Status'], '200 Ok') 489 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 490 path = os.path.join(samples_dir(), 'course_result_slip.pdf') 491 open(path, 'wb').write(self.browser.contents) 492 print "Sample PDF course_result_slip.pdf written to %s" % path 482 493 483 494 def test_get_returning_data(self):
Note: See TracChangeset for help on using the changeset viewer.