Ignore:
Timestamp:
9 Jun 2016, 12:36:41 (9 years ago)
Author:
Henrik Bettermann
Message:

Add ExportPDFScoresSlip.

File:
1 edited

Legend:

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

    r13894 r13898  
    18891889        self.assertTrue('mrslecturer - students.browser.EditScoresPage - '
    18901890                        'K1000000 100/COURSE1 score updated (None)' in logcontent)
     1891        # A course ticket slip can be downloaded
     1892        self.browser.open(
     1893            "http://localhost/app/faculties/fac1/dep1/courses/COURSE1/coursetickets.pdf")
     1894        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     1895        self.assertEqual(self.browser.headers['Content-Type'],
     1896                         'application/pdf')
     1897        path = os.path.join(samples_dir(), 'coursetickets.pdf')
     1898        open(path, 'wb').write(self.browser.contents)
     1899        print "Sample PDF coursetickets.pdf written to %s" % path
     1900
    18911901
    18921902    def test_change_current_mode(self):
Note: See TracChangeset for help on using the changeset viewer.