Changeset 8116


Ignore:
Timestamp:
12 Apr 2012, 05:40:45 (13 years ago)
Author:
Henrik Bettermann
Message:

Add regression test. The test fails at the moment.

File:
1 edited

Legend:

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

    r8115 r8116  
    534534            '<a target="image" href="birth_certificate">'
    535535            in self.browser.contents)
    536 
     536        # Managers can open the pdf slip
     537        self.browser.open(self.clearance_path)
     538        self.browser.getLink("slip").click()
     539        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     540        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
    537541        # Browsing the link shows a real image
    538542        self.browser.open('birth_certificate')
Note: See TracChangeset for help on using the changeset viewer.