Changeset 9431 for main/waeup.futminna/trunk/src/waeup/futminna/interswitch
- Timestamp:
- 26 Oct 2012, 20:59:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna/interswitch/tests.py
r9410 r9431 116 116 self.browser.getControl(name="form.p_category").value = ['hostel_maintenance'] 117 117 self.browser.getControl("Create ticket").click() 118 self.assertMatches('...You have not yet booked accommodation...', 119 self.browser.contents) 120 # Students have to book bed first 121 self.browser.open(self.acco_path) 122 IWorkflowState(self.student).setState('admitted') 123 self.browser.getLink("Book accommodation").click() 124 self.assertFalse('Activation Code:' in self.browser.contents) 125 self.browser.getControl("Create bed ticket").click() 126 # Bed is randomly selected but, since there is only 127 # one bed for this student, we know that ... 128 self.assertMatches('...Hall 1, Block A, Room 101, Bed A...', 129 self.browser.contents) 130 self.browser.open(self.payments_path + '/addop') 131 self.browser.getControl(name="form.p_category").value = ['hostel_maintenance'] 132 self.browser.getControl("Create ticket").click() 118 133 self.assertMatches('...ticket created...', 119 134 self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.