Changeset 15423 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 24 May 2019, 09:59:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15422 r15423 4517 4517 print "Sample PDF coursetickets.pdf written to %s" % path 4518 4518 4519 def test_lecturers_can_download_attendance_sheet(self): 4520 # A course ticket slip can be downloaded 4521 self.course.title = (u'Lorem ipsum dolor sit amet, consectetur adipisici, ' 4522 u'sed eiusmod tempor incidunt ut labore et dolore') 4523 self.login_as_lecturer() 4524 pdf_url = '%s/attendance.pdf' % self.course_url 4525 self.browser.open(pdf_url) 4526 self.assertEqual(self.browser.headers['Status'], '200 Ok') 4527 self.assertEqual( 4528 self.browser.headers['Content-Type'], 'application/pdf') 4529 path = os.path.join(samples_dir(), 'attendance.pdf') 4530 open(path, 'wb').write(self.browser.contents) 4531 print "Sample PDF attendance.pdf written to %s" % path 4532 4533 4519 4534 def test_lecturers_can_download_scores_as_csv(self): 4520 4535 # Lecturers can download course scores as CSV.
Note: See TracChangeset for help on using the changeset viewer.