Ignore:
Timestamp:
15 Nov 2012, 22:10:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Rework pagetemplates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9569 r9641  
    2222import tempfile
    2323import pytz
     24import base64
    2425from datetime import datetime, timedelta
    2526from StringIO import StringIO
     
    438439        # manufacturers to support a "logout" user interface element ...
    439440        self.assertTrue('Manager' in self.browser.contents)
     441
     442    def test_basic_auth_base64(self):
     443        auth_token = base64.b64encode('mgr:mgrpw')
     444        self.browser.addHeader('Authorization', 'Basic %s' % auth_token)
     445        self.browser.open(self.manage_container_path)
     446        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    440447
    441448    def test_manage_access(self):
Note: See TracChangeset for help on using the changeset viewer.