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@…>, 2 years ago

Fix flake8 warnings in test hooks.py

  • Property mode set to 100644
File size: 452 bytes
RevLine 
[0f52d48]1import os
[0699668]2import re
3from mgstest import require_match
[0f52d48]4from unittest import SkipTest
5
[5357109]6
[0f52d48]7def prepare_env():
[5357109]8    if 'OCSP_PORT' not in os.environ:
[0f52d48]9        raise SkipTest('OCSP_PORT is not set, check if openssl is available.')
[0699668]10
[5357109]11
[0699668]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.