Ignore:
Timestamp:
6 Sep 2015, 07:23:27 (9 years ago)
Author:
Henrik Bettermann
Message:

Only students with verdict 'A' or 'B' are eligible to book accommodation.

Location:
main/waeup.uniben/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk

    • Property svn:ignore
      •  

        old new  
        77sources
        88var
         9uuid.txt
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r13251 r13252  
    942942            self.browser.contents)
    943943        self.student['studycourse'].current_level = 100
     944        # ... or student has not appropriate verdict (Uniben only!)
     945        self.student['studycourse'].current_verdict = 'C'
     946        self.browser.getLink("Book accommodation").click()
     947        self.assertMatches('...Your are not eligible...',
     948            self.browser.contents)
     949        self.student['studycourse'].current_verdict = 'A'
    944950        # ... or student is not the an allowed state ...
    945951        self.browser.getLink("Book accommodation").click()
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r13251 r13252  
    6666                return _("Outside booking period.")
    6767        if not student.current_verdict in ('A', 'B'):
    68             return _("Your data are eligible to book accommodation.")
     68            return _("Your are not eligible to book accommodation.")
    6969        if not acc_details.get('bt'):
    7070            return _("Your data are incomplete.")
Note: See TracChangeset for help on using the changeset viewer.