Ignore:
Timestamp:
21 Jun 2016, 08:30:14 (9 years ago)
Author:
Henrik Bettermann
Message:

Get grade from total. Use textwrap for fullname.

File:
1 edited

Legend:

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

    r13963 r13964  
    336336            self.student['studycourse']['100']['COURSE1'].ca, 77)
    337337
     338    def test_lecturers_can_download_course_tickets(self):
     339        # A course ticket slip can be downloaded
     340        self.login_as_lecturer()
     341        pdf_url = '%s/coursetickets.pdf' % self.course_url
     342        self.browser.open(pdf_url)
     343        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     344        self.assertEqual(
     345            self.browser.headers['Content-Type'], 'application/pdf')
     346        path = os.path.join(samples_dir(), 'coursetickets.pdf')
     347        open(path, 'wb').write(self.browser.contents)
     348        print "Sample PDF coursetickets.pdf written to %s" % path
     349
    338350class StudentUITests(StudentsFullSetup):
    339351    """Tests for customized student class views and pages
Note: See TracChangeset for help on using the changeset viewer.