Ignore:
Timestamp:
12 Nov 2015, 09:03:47 (9 years ago)
Author:
Henrik Bettermann
Message:

Accommodation session must not be changed if hostels are not empty.

File:
1 edited

Legend:

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

    r13440 r13445  
    215215            self.app['hostels']['hall-x']['hall_block_room_bed'].owner,
    216216            NOT_OCCUPIED)
     217        # Accommodation session can't be changed if hostels are not empty.
     218        self.browser.open(self.manage_container_path)
     219        self.browser.getControl(name="form.accommodation_session").value = ['2005']
     220        self.browser.getControl("Save").click()
     221        self.assertTrue(
     222            'You can\'t change the booking session before clearing all hostels'
     223            in self.browser.contents)
    217224        # Releasing is logged.
    218225        logcontent = open(self.logfile).read()
Note: See TracChangeset for help on using the changeset viewer.