Changeset 10257 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 30 May 2013, 18:51:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r10256 r10257 23 23 import pytz 24 24 import base64 25 from datetime import datetime, timedelta 25 from datetime import datetime, timedelta, date 26 26 from StringIO import StringIO 27 27 import os … … 48 48 from waeup.kofa.hostels.hostel import Hostel, Bed, NOT_OCCUPIED 49 49 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase 50 from waeup.kofa.browser.tests.test_pdf import samples_dir 50 51 51 52 PH_LEN = 15911 # Length of placeholder file … … 1812 1813 1813 1814 def test_transcrtipts(self): 1815 self.student.date_of_birth = date(1981, 2, 4) 1814 1816 studylevel = createObject(u'waeup.StudentStudyLevel') 1815 1817 studylevel.level = 100 1816 1818 studylevel.level_session = 2005 1819 self.student['studycourse'].entry_mode = 'ug_ft' 1817 1820 self.student['studycourse'].addStudentStudyLevel( 1818 1821 self.certificate, studylevel) … … 1845 1848 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1846 1849 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1850 path = os.path.join(samples_dir(), 'transcript.pdf') 1851 open(path, 'wb').write(self.browser.contents) 1847 1852 1848 1853 class StudentUITests(StudentsFullSetup):
Note: See TracChangeset for help on using the changeset viewer.