Changeset 14238 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 28 Oct 2016, 08:24:50 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14227 r14238 32 32 from zope.catalog.interfaces import ICatalog 33 33 from waeup.kofa.app import University 34 from waeup.kofa.interfaces import VALIDATED 34 from waeup.kofa.interfaces import VALIDATED, PAID 35 35 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 36 36 from waeup.kofa.students.accommodation import BedTicket … … 796 796 in self.browser.contents) 797 797 self.student['studycourse'].certificate.study_mode = 'ug_ft' 798 self.app['hostels'].accommodation_states = [PAID] 799 self.browser.getControl("Book accommodation").click() 800 self.assertTrue( 801 'You are in the wrong registration state.' 802 in self.browser.contents) 803 IWorkflowState(self.student).setState(PAID) 798 804 self.browser.getControl("Book accommodation").click() 799 805 self.assertFalse('Activation Code:' in self.browser.contents) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r14236 r14238 391 391 392 392 def checkAccommodationRequirements(self, student, acc_details): 393 super(CustomStudentsUtils, self).checkAccommodationRequirements(393 msg = super(CustomStudentsUtils, self).checkAccommodationRequirements( 394 394 student, acc_details) 395 if msg: 396 return msg 395 397 if student.current_mode not in ('ug_ft', 'de_ft', 'mug_ft', 'mde_ft'): 396 398 return _('You are not eligible to book accommodation.')
Note: See TracChangeset for help on using the changeset viewer.