Changeset 10498


Ignore:
Timestamp:
13 Aug 2013, 17:00:28 (11 years ago)
Author:
uli
Message:

Make sure we put data in correct service_ticket columns in DB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/tests/test_server.py

    r10495 r10498  
    374374        assert b'noscript' in resp.body
    375375        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-')
    376381
    377382    def test_login_cred_acceptor_failed(self):
     
    468473        assert RE_ALPHABET.match(st.ticket), (
    469474            'Ticket contains forbidden chars: %s' % st)
     475        assert st.service == 'http://www.example.com'
     476        assert st.user == 'bob'
    470477
    471478    def test_create_login_ticket(self):
Note: See TracChangeset for help on using the changeset viewer.