Ignore:
Timestamp:
18 Apr 2012, 04:35:17 (13 years ago)
Author:
Henrik Bettermann
Message:

Only to be sure and demonstrate that we can't access the system with basic authentication (url will be replaced).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/browser/tests.py

    r8020 r8201  
    2020from zope.testbrowser.testing import Browser
    2121from zope.component.hooks import setSite, clearSite
     22from zope.security.interfaces import Unauthorized
    2223from waeup.kofa.testing import FunctionalTestCase
    2324from waeup.uniben.testing import FunctionalLayer
     
    5657        self.browser.open('http://localhost/app/configuration')
    5758        return
     59
     60    def test_access_live_url(self):
     61        # We can't access the system with basic authentication
     62        self.browser.addHeader('Authorization', 'Basic grok:grok')
     63        self.assertRaises(
     64            Unauthorized, self.browser.open, 'https://kofa-demo.waeup.org')
     65        return
Note: See TracChangeset for help on using the changeset viewer.