Changeset 10474
- Timestamp:
- 8 Aug 2013, 09:22:56 (11 years ago)
- Location:
- main/waeup.cas/trunk/waeup/cas
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/authenticators.py
r10462 r10474 117 117 name = 'kofa1' 118 118 119 def __init__(self, auth_ services=None):120 self. services = auth_services119 def __init__(self, auth_backends=None): 120 self.backends = auth_backends 121 121 122 122 def check_credentials(self, username='', password=''): -
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.