Ignore:
Timestamp:
16 Sep 2012, 19:23:06 (12 years ago)
Author:
Henrik Bettermann
Message:

Export pdf admission letter.

File:
1 edited

Legend:

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

    r9183 r9191  
    11921192        self.assertTrue(
    11931193            'You logged in.' in self.browser.contents)
    1194         # Student can upload a passport picture
     1194        # Admitted student can upload a passport picture
    11951195        self.browser.open(self.student_path + '/change_portrait')
    11961196        ctrl = self.browser.getControl(name='passportuploadedit')
     
    12031203            '<img align="middle" height="125px" src="passport.jpg" />'
    12041204            in self.browser.contents)
     1205        # Students can open admission letter
     1206        self.browser.getLink("Base Data").click()
     1207        self.browser.getLink("Download admission letter").click()
     1208        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     1209        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
    12051210        # Student can view the clearance data
     1211        self.browser.open(self.student_path)
    12061212        self.browser.getLink("Clearance Data").click()
    12071213        # Student can't open clearance edit form before starting clearance
Note: See TracChangeset for help on using the changeset viewer.