Ignore:
Timestamp:
27 Aug 2023, 13:01:06 (16 months ago)
Author:
Henrik Bettermann
Message:

See ticket #42 comment 12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_browser.py

    r17554 r17561  
    2121from StringIO import StringIO
    2222from hurry.workflow.interfaces import IWorkflowState, IWorkflowInfo
     23from mechanize imporLinkNotFoundErrort
    2324from zope.securitypolicy.interfaces import IPrincipalRoleManager
    2425from zope.component.hooks import setSite, clearSite
     
    5455            '...You logged in...', self.browser.contents)
    5556        self.browser.getLink("Base Data").click()
     57        self.assertRaises(
     58            LinkNotFoundError,
     59            self.browser.getLink, 'Download examination clearance slip')
     60        #self.browser.getLink("Download examination clearance slip").click()
     61        # Unidel changed it's mind
     62        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     63        self.browser.getLink("Base Data").click()
    5664        self.browser.getLink("Download examination clearance slip").click()
    5765        self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.