Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Adapt unittest to HTTP message modification
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz-jbleclere committed Sep 9, 2020
1 parent 4909a21 commit 0c52d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_unittest_on_hw.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from glob import glob
from os import remove, getpid
from os.path import getsize, isfile, dirname, join, realpath
from re import match, search, finditer, MULTILINE
from re import match, search, finditer, MULTILINE, IGNORECASE
from time import sleep, time
from json import loads
from datetime import datetime, timedelta
Expand Down Expand Up @@ -2589,7 +2589,7 @@ def test_curl_host_resolve(accelize_drm, conf_json, cred_json, async_handler):
)
with pytest.raises(accelize_drm.exceptions.DRMExternFail) as excinfo:
drm_manager.activate()
assert 'Peer certificate cannot be authenticated with given CA certificates' in str(excinfo.value)
assert search(r'peer certificate', str(excinfo.value), IGNORECASE)
assert async_handler.get_error_code(str(excinfo.value)) == accelize_drm.exceptions.DRMExternFail.error_code
async_cb.assert_NoError()
del drm_manager
Expand Down

0 comments on commit 0c52d17

Please sign in to comment.