Ignore:
Timestamp:
13 Sep 2012, 11:05:53 (12 years ago)
Author:
uli
Message:

Update browser tests for CSV export.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-async-update/src/waeup/kofa/browser/tests/test_browser.py

    r9169 r9173  
    204204        # ...we can download the result
    205205        self.browser.getControl("Download").click()
    206         self.assertEqual(self.browser.headers['Content-Type'],
     206        self.assertEqual(self.browser.headers['content-type'],
    207207                         'text/csv; charset=UTF-8')
    208         self.assertTrue ('WAeUP.KofaFaculties.csv' in
    209             self.browser.headers['content-disposition'])
     208        self.assertEqual(self.browser.headers['content-disposition'],
     209                         'attachment; filename="WAeUP.Kofa_faculties.csv')
    210210        self.assertEqual(self.browser.contents,
    211211            'code,title,title_prefix,users_with_local_roles\r\n'
Note: See TracChangeset for help on using the changeset viewer.