Changeset 9836 for main/waeup.kofa/trunk/src/waeup/kofa/browser/tests
- Timestamp:
- 7 Jan 2013, 08:01:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_browser.py
r9835 r9836 224 224 self.app['datacenter'].storage, 'logs', 'datacenter.log') 225 225 logcontent = open(logfile).read() 226 self.assertTrue('zope.mgr - browser.pages.ExportCSVPage - exported: ' 227 'faculties, job_id=' in logcontent) 226 228 self.assertTrue('zope.mgr - browser.pages.ExportCSVView - ' 227 ' exported: WAeUP.Kofa_faculties.csv' in logcontent)229 'downloaded: WAeUP.Kofa_faculties.csv, job_id=' in logcontent) 228 230 return 229 231 … … 308 310 'current_session\r\n') 309 311 self.cleanup_run_job() 312 logfile = os.path.join( 313 self.app['datacenter'].storage, 'logs', 'datacenter.log') 314 logcontent = open(logfile).read() 315 self.assertTrue( 316 'zope.mgr - students.browser.DatacenterExportJobContainerJobConfig ' 317 '- exported: students (None, None, None, None), job_id=' 318 in logcontent) 319 self.assertTrue( 320 'zope.mgr - browser.pages.ExportCSVView ' 321 '- downloaded: WAeUP.Kofa_students.csv, job_id=' in logcontent) 310 322 return 311 323 … … 317 329 self.browser.getControl("Discard").click() 318 330 self.assertTrue('Discarded export' in self.browser.contents) 331 logfile = os.path.join( 332 self.app['datacenter'].storage, 'logs', 'datacenter.log') 333 logcontent = open(logfile).read() 334 self.assertTrue( 335 'zope.mgr - browser.pages.ExportCSVPage - discarded: job_id=' 336 in logcontent) 319 337 return 320 338
Note: See TracChangeset for help on using the changeset viewer.