Changeset 13050 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 15 Jun 2015, 14:35:38 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13047 r13050 3006 3006 self.assertMatches('...Activation Code:...', 3007 3007 self.browser.contents) 3008 # Student can't use dfaked ACs ...3008 # Student can't use faked ACs ... 3009 3009 self.browser.getControl(name="ac_series").value = u'nonsense' 3010 3010 self.browser.getControl(name="ac_number").value = sfenumber … … 3019 3019 self.assertMatches('...You are not the owner of this access code...', 3020 3020 self.browser.contents) 3021 # The bed remains empty 3022 bed = self.app['hostels']['hall-1']['hall-1_A_101_A'] 3023 self.assertTrue(bed.owner == NOT_OCCUPIED) 3021 3024 ac.owner = self.student_id 3022 3025 self.browser.getControl(name="ac_series").value = sfeseries … … 3026 3029 self.browser.contents) 3027 3030 # Bed has been allocated 3028 bed = self.app['hostels']['hall-1']['hall-1_A_101_A']3029 3031 self.assertTrue(bed.owner == self.student_id) 3030 3032 # BedTicketAddPage is now blocked
Note: See TracChangeset for help on using the changeset viewer.