Changeset 10498
- Timestamp:
- 13 Aug 2013, 17:00:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/test_server.py
r10495 r10498 374 374 assert b'noscript' in resp.body 375 375 assert b'ticket=ST-' in resp.body 376 q = self.raw_app.db.query(ServiceTicket) 377 st = q.all()[0] 378 assert st.user == 'bird' 379 assert st.service == 'http://example.com/Login' 380 assert st.ticket.startswith('ST-') 376 381 377 382 def test_login_cred_acceptor_failed(self): … … 468 473 assert RE_ALPHABET.match(st.ticket), ( 469 474 'Ticket contains forbidden chars: %s' % st) 475 assert st.service == 'http://www.example.com' 476 assert st.user == 'bob' 470 477 471 478 def test_create_login_ticket(self):
Note: See TracChangeset for help on using the changeset viewer.