Changeset 11607 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 30 Apr 2014, 05:30:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r11605 r11607 28 28 from waeup.kofa.students.accommodation import BedTicket 29 29 from waeup.kofa.testing import FunctionalTestCase 30 from waeup.kofa.browser.tests.test_pdf import samples_dir 30 31 from waeup.aaue.testing import FunctionalLayer 31 32 … … 351 352 self.student['studycourse'].certificate.study_mode = 'ug_pt' 352 353 self.browser.open(self.student_path) 354 self.assertRaises( 355 LinkNotFoundError, 356 self.browser.getLink, 'Download matriculation number slip') 353 357 self.browser.getLink("Get Matriculation Number").click() 354 358 self.assertTrue('Matriculation number PTP/fac1/dep1/04/00001 assigned.' … … 364 368 self.assertTrue('E1000000 - waeup.aaue.students.browser.StudentGetMatricNumberPage - ' 365 369 'E1000000 - PTP/fac1/dep1/04/00001 assigned' in logcontent) 366 return 367 370 # Matric Number Slip can be downloaded 371 self.browser.getLink("Download matriculation number slip").click() 372 self.assertEqual(self.browser.headers['Status'], '200 Ok') 373 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 374 path = os.path.join(samples_dir(), 'transcript.pdf') 375 open(path, 'wb').write(self.browser.contents) 376 print "Sample PDF matric_number_slip.pdf written to %s" % path 377 return 378
Note: See TracChangeset for help on using the changeset viewer.