Ignore:
Timestamp:
16 Sep 2012, 04:30:12 (12 years ago)
Author:
Henrik Bettermann
Message:

Students book accommodation without AC. Bed is randomly selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r9156 r9190  
    269269        self.assertMatches('...Clearance process has been started...',
    270270                           self.browser.contents)
     271
     272    def test_student_accommodation(self):
     273        # Login
     274        self.browser.open(self.login_path)
     275        self.browser.getControl(name="form.login").value = self.student_id
     276        self.browser.getControl(name="form.password").value = 'spwd'
     277        self.browser.getControl("Login").click()
     278
     279        # Students can book accommodation without AC ...
     280        self.browser.open(self.acco_path)
     281        IWorkflowInfo(self.student).fireTransition('admit')
     282        self.browser.getLink("Book accommodation").click()
     283        self.assertFalse('Activation Code:' in self.browser.contents)
     284        self.browser.getControl("Create bed ticket").click()
     285        # Bed is randomly selected but, since there is only
     286        # one bed for this student, we know that
     287        self.assertMatches('...Hall 1, Block A, Room 101, Bed A...',
     288                           self.browser.contents)
     289        return
Note: See TracChangeset for help on using the changeset viewer.