Changeset 10474 for main/waeup.cas/trunk/waeup/cas/tests
- Timestamp:
- 8 Aug 2013, 09:22:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/test_authenticators.py
r10462 r10474 59 59 60 60 61 SERVICES = dict( 62 inst1 = dict(auth_url = 'http://localhost:6666/app', 63 service_url = 'http://example.com/foo/bar') 61 BACKENDS = dict( 62 inst1 = dict( 63 url = 'http://localhost:6666/app', 64 marker = '^M[0-9]+', 65 ) 64 66 ) 65 66 67 67 68 class KofaAuthenticatorTests(unittest.TestCase): … … 75 76 # all options have sensible defaults 76 77 auth = KofaAuthenticator() 77 assert auth. services is None78 assert auth.backends is None 78 79 79 80 def test_options(self): 80 81 # we can pass options 81 auth = KofaAuthenticator(auth_ services=SERVICES)82 assert auth. services == SERVICES82 auth = KofaAuthenticator(auth_backends=BACKENDS) 83 assert auth.backends == BACKENDS 83 84 84 85 def test_paste_deploy_options(self):
Note: See TracChangeset for help on using the changeset viewer.