use assertRegex not assertRegexpMatches

The latter is deprecated.
This commit is contained in:
Chris Dent 2017-05-04 19:37:17 +01:00
parent 75694c888e
commit 6b6acc2e53
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class HeadersResponseHandler(base.ResponseHandler):
if header_value.startswith('/') and header_value.endswith('/'):
header_value = header_value.strip('/').rstrip('/')
test.assertRegexpMatches(
test.assertRegex(
response_value, header_value,
'Expect header %s to match /%s/, got %s' %
(header, header_value, response_value))