Changeset 10413 for main/waeup.cas/trunk/waeup/cas/tests
- Timestamp:
- 7 Jul 2013, 08:02:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/test_server.py
r10412 r10413 200 200 assert b'username' in resp.body 201 201 assert 'Set-Cookie' not in resp.headers 202 203 def test_login_warn(self): 204 # 2.2.1 as a credential acceptor, with `warn` set we require confirm 205 app = CASServer() 206 tgc = create_tgc_value() 207 app.db.add(tgc) 208 value = str(tgc.value) 209 params = 'warn=true&service=http%3A%2F%2Fwww.service.com' 210 req = Request.blank('https://localhost/login?%s' % params) 211 req.headers['Cookie'] = 'cas-tgc=%s' % value 212 resp = app(req) 213 # without warn, we would get a redirect 214 assert resp.status == '200 OK' 215 assert b'CAS login successful' in resp.body 202 216 203 217
Note: See TracChangeset for help on using the changeset viewer.