- Timestamp:
- 13 Jan 2015, 08:18:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
r12401 r12460 307 307 name='upload_pdfscanmanageupload').click() 308 308 self.assertTrue( 309 'href="http://localhost/app/customers/K1000000/documents/%s/scan.pdf"> PDF File</a>'310 % docidin self.browser.contents)309 'href="http://localhost/app/customers/K1000000/documents/%s/scan.pdf">%s.pdf</a>' 310 % (docid, docid[:9]) in self.browser.contents) 311 311 # Browsing the link shows a real pdf 312 312 self.browser.open('scan.pdf') 313 313 self.assertEqual( 314 314 self.browser.headers['content-type'], 'application/pdf') 315 # The name of the downloaded file will be different 316 self.assertEqual( 317 self.browser.headers['Content-Disposition'], 318 'attachment; filename="%s.pdf' % docid[:9]) 315 319 316 320 class ContractUITests(CustomersFullSetup):
Note: See TracChangeset for help on using the changeset viewer.