Changeset 13964 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 21 Jun 2016, 08:30:14 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13963 r13964 336 336 self.student['studycourse']['100']['COURSE1'].ca, 77) 337 337 338 def test_lecturers_can_download_course_tickets(self): 339 # A course ticket slip can be downloaded 340 self.login_as_lecturer() 341 pdf_url = '%s/coursetickets.pdf' % self.course_url 342 self.browser.open(pdf_url) 343 self.assertEqual(self.browser.headers['Status'], '200 Ok') 344 self.assertEqual( 345 self.browser.headers['Content-Type'], 'application/pdf') 346 path = os.path.join(samples_dir(), 'coursetickets.pdf') 347 open(path, 'wb').write(self.browser.contents) 348 print "Sample PDF coursetickets.pdf written to %s" % path 349 338 350 class StudentUITests(StudentsFullSetup): 339 351 """Tests for customized student class views and pages
Note: See TracChangeset for help on using the changeset viewer.