From bfa04dfd24b69c7276a7324d5bdc8dfe2487e720 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Fri, 4 Jul 2014 16:14:42 +0100 Subject: [PATCH] Added assertRegex to WagtailTestUtils --- wagtail/tests/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wagtail/tests/utils.py b/wagtail/tests/utils.py index c44549401..9360f2206 100644 --- a/wagtail/tests/utils.py +++ b/wagtail/tests/utils.py @@ -1,4 +1,5 @@ from django.contrib.auth.models import User +from django.utils import six # We need to make sure that we're using the same unittest library that Django uses internally # Otherwise, we get issues with the "SkipTest" and "ExpectedFailure" exceptions being recognised as errors @@ -21,3 +22,6 @@ class WagtailTestUtils(object): self.client.login(username='test', password='password') return user + + def assertRegex(self, *args, **kwargs): + six.assertRegex(self, *args, **kwargs)