Ignore:
Timestamp:
5 Nov 2012, 07:19:54 (12 years ago)
Author:
Henrik Bettermann
Message:

Limit the total number of credits per level.

File:
1 edited

Legend:

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

    r9521 r9532  
    725725        self.browser.getControl("Add course ticket").click()
    726726        self.browser.getControl(name="form.course").value = ['COURSE1']
     727        self.course.credits = 100
     728        self.browser.getControl("Add course ticket").click()
     729        self.assertMatches(
     730            '...Total credits exceed 58...', self.browser.contents)
     731        self.course.credits = 10
    727732        self.browser.getControl("Add course ticket").click()
    728733        self.assertTrue('Successfully added' in self.browser.contents)
     
    18731878        self.browser.getControl("Add course ticket").click()
    18741879        self.browser.getControl(name="form.course").value = ['COURSE1']
     1880        self.course.credits = 100
     1881        self.browser.getControl("Add course ticket").click()
     1882        self.assertMatches(
     1883            '...Your total credits exceed 58...', self.browser.contents)
     1884        self.course.credits = 10
    18751885        self.browser.getControl("Add course ticket").click()
    18761886        self.assertMatches('...The ticket exists...',
Note: See TracChangeset for help on using the changeset viewer.