Ignore:
Timestamp:
13 Jan 2015, 08:18:16 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py

    r12401 r12460  
    307307            name='upload_pdfscanmanageupload').click()
    308308        self.assertTrue(
    309             'href="http://localhost/app/customers/K1000000/documents/%s/scan.pdf">PDF File</a>'
    310             % docid in 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)
    311311        # Browsing the link shows a real pdf
    312312        self.browser.open('scan.pdf')
    313313        self.assertEqual(
    314314            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])
    315319
    316320class ContractUITests(CustomersFullSetup):
Note: See TracChangeset for help on using the changeset viewer.