source: mod_gnutls/test/tests/14_resume_session/hooks.py @ 3871dbd

asyncioproxy-ticket
Last change on this file since 3871dbd was f246f00, checked in by Fiona Klute <fiona.klute@…>, 21 months ago

Use post_check hook for test 14_resume_session

  • Property mode set to 100644
File size: 467 bytes
Line 
1import re
2from mgstest import require_match
3
4def post_check(conn_log, response_log):
5    print('Checking if the session was resumed successfully...')
6    # NOTE: The "Resume Handshake was completed" message appears after
7    # the second handshake is complete, whether the session has been
8    # resumed or not. The following message is required!
9    print(require_match(re.compile(r'^\*\*\* This is a resumed session\b'),
10                        conn_log).group(0))
Note: See TracBrowser for help on using the repository browser.