Ignore:
Timestamp:
22 Jul 2019, 19:22:40 (5 years ago)
Author:
Henrik Bettermann
Message:

Change admission slip and add watermark.

File:
1 edited

Legend:

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

    r15300 r15507  
    378378        return
    379379
    380     def test_admission_slip_link(self):
     380    def test_admission_slip(self):
    381381        # Login
    382382        IWorkflowState(self.student).setState('admitted')
     
    391391        self.assertTrue(
    392392          'Download admission letter' in self.browser.contents)
     393        # Students can open admission letter
     394        self.browser.getLink("Download admission letter").click()
     395        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     396        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     397        path = os.path.join(samples_dir(), 'admission_slip.pdf')
     398        open(path, 'wb').write(self.browser.contents)
     399        print "Sample PDF admission_slip.pdf written to %s" % path
    393400        return
    394401
Note: See TracChangeset for help on using the changeset viewer.