- Timestamp:
- 16 Nov 2015, 09:13:22 (9 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r13389 r13461 183 183 self.browser.open(self.acco_path) 184 184 IWorkflowState(self.student).setState('admitted') 185 self.browser.get Link("Book accommodation").click()185 self.browser.getControl("Book accommodation").click() 186 186 self.assertFalse('Activation Code:' in self.browser.contents) 187 187 self.browser.getControl("Create bed ticket").click() -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r13393 r13461 370 370 self.browser.open(self.acco_path) 371 371 IWorkflowInfo(self.student).fireTransition('admit') 372 self.browser.get Link("Book accommodation").click()372 self.browser.getControl("Book accommodation").click() 373 373 self.assertFalse('Activation Code:' in self.browser.contents) 374 374 self.browser.getControl("Create bed ticket").click() … … 390 390 self.browser.open(self.acco_path) 391 391 IWorkflowInfo(self.student).fireTransition('admit') 392 self.browser.get Link("Book accommodation").click()392 self.browser.getControl("Book accommodation").click() 393 393 self.browser.getControl("Create bed ticket").click() 394 394 self.assertTrue('There is no free bed in your category iot_male_fr.' in -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r13419 r13461 106 106 return None 107 107 108 def selectBed(self, available_beds ):108 def selectBed(self, available_beds, desired_hostel): 109 109 """Randomly select a bed from a list of available beds. 110 111 110 """ 112 111 return random.choice(available_beds)
Note: See TracChangeset for help on using the changeset viewer.