Changeset 10491 for main/waeup.cas/trunk/waeup/cas/tests/test_server.py
- Timestamp:
- 13 Aug 2013, 13:14:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/test_server.py
r10490 r10491 13 13 create_tgc_value, check_login_ticket, set_session_cookie, 14 14 check_session_cookie, get_template, delete_session_cookie, 15 check_service_ticket, 15 check_service_ticket, update_url 16 16 ) 17 17 … … 564 564 assert check_service_ticket( 565 565 db, 'ST-123456', 'http://myservice.com', False) is not None 566 567 def test_update_url(self): 568 # we can create valid new urls with query string params updated 569 url = 'http://sample.com/index?a=1&b=2' 570 result1 = update_url('http://sample.com/index?a=1&b=2', dict(b='3')) 571 assert result1 == 'http://sample.com/index?a=1&b=3' 572 result2 = update_url('http://sample.com/index?b=2', dict(b='3')) 573 assert result2 == 'http://sample.com/index?b=3' 574 result3 = update_url('http://sample.com/index', dict(b='3')) 575 assert result3 == 'http://sample.com/index?b=3' 576 result4 = update_url('http://sample.com/index?a=2', dict(b='3')) 577 assert result4 == 'http://sample.com/index?a=2&b=3'
Note: See TracChangeset for help on using the changeset viewer.