Changeset 13317 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 14 Oct 2015, 10:07:06 (9 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r13309 r13317 504 504 """ 505 505 506 omit_fields = ('password', 'suspended', 'suspended_comment', 507 'phone', 'adm_code', 'email', 'date_of_birth') 506 508 507 509 def render(self): -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r13309 r13317 1010 1010 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1011 1011 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1012 path = os.path.join(samples_dir(), 'bed_allocation_slip.pdf') 1013 open(path, 'wb').write(self.browser.contents) 1014 print "Sample PDF bed_allocation_slip.pdf written to %s" % path 1012 1015 # Students can't relocate themselves. 1013 1016 self.assertFalse('Relocate' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.