Skip to content

Commit

Permalink
assertRegexpMatches → assertRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jan 1, 2024
1 parent c336125 commit 5a03b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_bley.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _assert_defer_action(self, data):

def _assert_prepend_action(self, data):
self.assertEquals(data['action'], b"action=PREPEND")
self.assertRegexpMatches(data['text'].decode('ascii'), r"X-Greylist: delayed .* seconds by bley-.* at .*; .*")
self.assertRegex(data['text'].decode('ascii'), r"X-Greylist: delayed .* seconds by bley-.* at .*; .*")

def test_incomplete_request(self):
data = {
Expand Down

0 comments on commit 5a03b65

Please sign in to comment.