Changeset 9218


Ignore:
Timestamp:
21 Sep 2012, 16:08:35 (12 years ago)
Author:
Henrik Bettermann
Message:

Test if students catalog is updated after transerring student.

File:
1 edited

Legend:

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

    r9204 r9218  
    16031603        configuration.clearance_fee = 3456.0
    16041604        configuration.booking_fee = 123.4
    1605         self.student['studycourse'].entry_session = 2002
    16061605        self.app['configuration'].addSessionConfiguration(configuration)
    16071606        configuration2 = createObject('waeup.SessionConfiguration')
     
    16091608        configuration2.clearance_fee = 3456.0
    16101609        configuration2.booking_fee = 123.4
     1610        self.app['configuration'].addSessionConfiguration(configuration2)
     1611
    16111612        self.student['studycourse'].entry_session = 2002
    1612         self.app['configuration'].addSessionConfiguration(configuration2)
     1613
    16131614        # Login
    16141615        self.browser.open(self.login_path)
     
    20762077        self.browser.getControl("Transfer").click()
    20772078        self.assertTrue('Successfully transferred' in self.browser.contents)
    2078 
     2079        # The catalog has been updated
     2080        cat = queryUtility(ICatalog, name='students_catalog')
     2081        results = list(
     2082            cat.searchResults(
     2083            certcode=('CERT2', 'CERT2')))
     2084        self.assertTrue(results[0] is self.student)
     2085        results = list(
     2086            cat.searchResults(
     2087            current_session=(2011, 2011)))
     2088        self.assertTrue(results[0] is self.student)
    20792089        # Add study level to new study course
    20802090        studylevel = createObject(u'waeup.StudentStudyLevel')
Note: See TracChangeset for help on using the changeset viewer.