Changeset 10679 for main/waeup.kwarapoly
- Timestamp:
- 1 Nov 2013, 06:46:11 (11 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r10675 r10679 76 76 def setUp(self): 77 77 super(StudentUITests, self).setUp() 78 78 self.certificate.study_mode = 'hnd_ft' 79 79 bedticket = BedTicket() 80 80 bedticket.booking_session = 2004 … … 104 104 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 105 105 self.browser.getControl("Create ticket").click() 106 107 106 self.assertMatches('...Book and pay for accommodation first...', 108 107 self.browser.contents) -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r10675 r10679 196 196 academic_session = self._getSessionConfiguration(p_session) 197 197 if academic_session == None: 198 return _(u'Session configuration object is not available.'), None 199 if student.state == CLEARED: 198 return _(u'Session configuration object ' 199 'is not available.'), None 200 if student.state == CLEARED and student.current_mode in ( 201 'hnd_ft', 'nd_ft'): 200 202 # Fresh students must have booked and paid for accommodation. 201 203 if self._bedAvailable(student):
Note: See TracChangeset for help on using the changeset viewer.