Ignore:
Timestamp:
29 Feb 2016, 17:01:43 (9 years ago)
Author:
Henrik Bettermann
Message:

Customize checkAccommodationRequirements:
Only ug fulltime students are eligible to book accommodation.

File:
1 edited

Legend:

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

    r13749 r13753  
    597597    def test_student_accommodation(self):
    598598        del self.student['accommodation']['2004']
     599        self.student['studycourse'].certificate.study_mode = 'dp_ft'
    599600        # All beds can be assigned
    600601        bed1 = self.app['hostels']['hall-1']['hall-1_A_101_A']
     
    612613        self.browser.open(self.acco_path)
    613614        IWorkflowInfo(self.student).fireTransition('admit')
     615        self.browser.getControl("Book accommodation").click()
     616        self.assertTrue(
     617            'You are not eligible to book accommodation.'
     618            in self.browser.contents)
     619        self.student['studycourse'].certificate.study_mode = 'ug_ft'
    614620        self.browser.getControl("Book accommodation").click()
    615621        self.assertFalse('Activation Code:' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.