Skip to content

Commit

Permalink
use assertRegex not assertRegexpMatches
Browse files Browse the repository at this point in the history
The latter is deprecated.
  • Loading branch information
cdent committed May 4, 2017
1 parent 75694c8 commit 6b6acc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gabbi/handlers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def action(self, test, header, value=None):

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))
Expand Down

0 comments on commit 6b6acc2

Please sign in to comment.