Ignore:
Timestamp:
25 Oct 2012, 11:41:19 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not allow that students can be removed from a bed by using the BedManageFormPage?.

File:
1 edited

Legend:

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

    r9414 r9416  
    315315        # Managers can manually allocate eligible students after cancellation
    316316        self.browser.open(self.container_path + '/hall-1/hall-1_A_101_A')
     317        # 'not occupied' is not accepted
     318        self.browser.getControl("Save").click()
     319        self.assertMatches(
     320            "...No valid student id...",
     321            self.browser.contents)
     322        # Invalid student ids are not accepted
    317323        self.browser.getControl(name="form.owner").value = 'nonsense'
    318324        self.browser.getControl("Save").click()
    319325        self.assertMatches(
    320             "...Either student does not exist or is not in accommodation session...",
     326            "...Either student does not exist or student "
     327            "is not in accommodation session...",
    321328            self.browser.contents)
    322329        self.browser.getControl(name="form.owner").value = self.student_id
Note: See TracChangeset for help on using the changeset viewer.