Change assertRegexMatches to assertRegex

This commit is contained in:
Tom Talbot 2014-07-10 17:15:56 +01:00
parent 844e1a66ef
commit 6ab88c9b58

View file

@ -416,4 +416,4 @@ class TestUsedBy(TestCase, WagtailTestUtils):
response = self.client.get(reverse('wagtaildocs_document_usage',
args=(1,)))
# There's no usage so there should be no table rows
self.assertRegexpMatches(response.content, '<tbody>(\s|\n)*</tbody>')
self.assertRegex(response.content, '<tbody>(\s|\n)*</tbody>')