- Timestamp:
- 15 Nov 2012, 22:10:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9569 r9641 22 22 import tempfile 23 23 import pytz 24 import base64 24 25 from datetime import datetime, timedelta 25 26 from StringIO import StringIO … … 438 439 # manufacturers to support a "logout" user interface element ... 439 440 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') 440 447 441 448 def test_manage_access(self):
Note: See TracChangeset for help on using the changeset viewer.