Changeset 10018


Ignore:
Timestamp:
12 Mar 2013, 20:26:23 (12 years ago)
Author:
Henrik Bettermann
Message:

Let's test at least if managers can open clearance slip which will be further customized in upcoming revisions.

File:
1 edited

Legend:

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

    r10012 r10018  
    342342            'Clearance process has been started' in self.browser.contents)
    343343
     344    def test_open_slips(self):
     345        # Managers can add online clearance slip
     346        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     347        self.browser.open(self.student_path + '/view_clearance')
     348        self.browser.getLink("Download clearance slip").click()
     349        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     350        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     351
    344352    def test_student_accommodation(self):
    345353        del self.student['accommodation']['2004']
Note: See TracChangeset for help on using the changeset viewer.