diff --git a/test/test_bley.py b/test/test_bley.py index 8005a75..d85c1d9 100644 --- a/test/test_bley.py +++ b/test/test_bley.py @@ -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 = {