Changeset 10497
- Timestamp:
- 13 Aug 2013, 16:59:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/test_db.py
r10407 r10497 106 106 sticket = ServiceTicket('foo', 'bar', 'baz', True, 12.1) 107 107 st_repr = sticket.__repr__() 108 assert st_repr == "ServiceTicket('foo', 'bar', 'baz', True, 12.1)" 108 assert st_repr == ( 109 "ServiceTicket(ticket='foo', user='bar', service='baz', " 110 "sso=True, timestamp=12.1)") 111 new_st = eval(st_repr) 112 assert sticket.user == new_st.user 113 assert sticket.ticket == new_st.ticket 114 assert sticket.service == new_st.service 115 assert sticket.sso == new_st.sso 116 assert sticket.ts == new_st.ts 109 117 110 118 def test_service_ticket_timestamp(self):
Note: See TracChangeset for help on using the changeset viewer.