- Timestamp:
- 18 Jan 2016, 17:22:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py
r13623 r13634 423 423 payment1 = createObject(u'waeup.StudentOnlinePayment') 424 424 timestamp = ("%d" % int(time()*10000))[1:] 425 payment1.p_id = " p%s" % timestamp425 payment1.p_id = "LSCNEW-2-4153206270" # the longest possible p_id 426 426 payment1.p_category = 'schoolfee' 427 427 payment1.p_item = u'My School Fee' … … 445 445 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 446 446 self.browser.open(self.student_path + '/clear_financially') 447 self.browser.getLink("Download bursaryclearance slip").click()447 self.browser.getLink("Download financial clearance slip").click() 448 448 self.assertEqual(self.browser.headers['Status'], '200 Ok') 449 449 self.assertEqual(self.browser.headers['Content-Type'], 450 450 'application/pdf') 451 path = os.path.join(samples_dir(), ' bursary_clearance_slip.pdf')451 path = os.path.join(samples_dir(), 'financial_clearance_slip.pdf') 452 452 open(path, 'wb').write(self.browser.contents) 453 print "Sample PDF bursary_clearance_slip.pdf written to %s" % path453 print "Sample PDF financial_clearance_slip.pdf written to %s" % path 454 454 return
Note: See TracChangeset for help on using the changeset viewer.