Changeset 7718 for main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py
- Timestamp:
- 28 Feb 2012, 19:34:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py
r7484 r7718 246 246 assert self.app['hostels']['hall-1'][ 247 247 'hall-1_A_101_D'].bed_type == 'regular_female_reserved' 248 expected = 'name="form.beds_reserved.0." size="20" type="text" value="A_101_A" />' 249 self.assertTrue(expected in self.browser.contents) 250 # Provoke exception 251 self.app['hostels']['hall-1']['hall-1_A_101_D'].bed_type = u'nonsense' 252 ctrl = self.browser.getControl(name='val_id') 253 ctrl.getControl(value='hall-1_A_101_D').selected = True 254 self.browser.getControl("Switch reservation", index=0).click() 255 self.assertMatches( 256 '...need more than 1 value to unpack...', self.browser.contents) 257 self.app['hostels']['hall-1'][ 258 'hall-1_A_101_D'].bed_type = u'regular_female_reserved' 248 self.assertTrue('<li>A_101_A</li>' in self.browser.contents) 259 249 # Change hostel configuration 260 250 hall.beds_for_all = ['D']
Note: See TracChangeset for help on using the changeset viewer.