Changeset 6962 for main/waeup.sirp/trunk
- Timestamp:
- 29 Oct 2011, 07:31:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py
r6961 r6962 106 106 return 107 107 108 def test_add_search_ delete_hostels(self):108 def test_add_search_edit_delete_hostels(self): 109 109 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 110 110 self.browser.open(self.container_path) … … 126 126 self.assertMatches(expected,self.browser.contents) 127 127 self.browser.open(self.container_path + '/hall_1/edit') 128 self.browser.getControl(name="form.nr_of_blocks").value = '5' 129 self.browser.getControl("Save").click() 130 self.assertTrue('Form has been saved' in self.browser.contents) 131 self.browser.open(self.manage_container_path) 132 ctrl = self.browser.getControl(name='val_id') 133 value = ctrl.options[0] 134 ctrl.getControl(value=value).selected = True 135 self.browser.getControl("Remove selected", index=0).click() 136 self.assertTrue('Successfully removed' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.