Changeset 15250 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 23 Nov 2018, 11:10:19 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15234 r15250 3270 3270 bed.bed_type = u'regular_female_fr' 3271 3271 self.app['hostels'][hostel.hostel_id].addBed(bed) 3272 self.app['hostels'].allocation_expiration = 7 3272 3273 3273 3274 self.browser.open(self.login_path) … … 3373 3374 self.assertEqual(self.browser.headers['Status'], '200 Ok') 3374 3375 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 3376 path = os.path.join(samples_dir(), 'bed_allocation_slip.pdf') 3377 open(path, 'wb').write(self.browser.contents) 3378 print "Sample PDF bed_allocation_slip.pdf written to %s" % path 3375 3379 # Students can't relocate themselves. 3376 3380 self.assertFalse('Relocate' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.