source: mod_gnutls/test/tests/27_OCSP_server/hooks.py

mod_gnutls/0.12.0
Last change on this file was 5357109, checked in by Fiona Klute <fiona.klute@…>, 13 months ago

Fix flake8 warnings in test hooks.py

  • Property mode set to 100644
File size: 452 bytes
Line 
1import os
2import re
3from mgstest import require_match
4from unittest import SkipTest
5
6
7def prepare_env():
8    if 'OCSP_PORT' not in os.environ:
9        raise SkipTest('OCSP_PORT is not set, check if openssl is available.')
10
11
12def post_check(conn_log, response_log):
13    print('Checking if the client actually got a stapled response:')
14    print(require_match(re.compile(r'^- Options: .*OCSP status request,'),
15                        conn_log).group(0))
Note: See TracBrowser for help on using the repository browser.