Changeset 6962 for main/waeup.sirp/trunk


Ignore:
Timestamp:
29 Oct 2011, 07:31:42 (13 years ago)
Author:
Henrik Bettermann
Message:

Increase test coverage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py

    r6961 r6962  
    106106        return
    107107
    108     def test_add_search_delete_hostels(self):
     108    def test_add_search_edit_delete_hostels(self):
    109109        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    110110        self.browser.open(self.container_path)
     
    126126        self.assertMatches(expected,self.browser.contents)
    127127        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.