Added assertRegex to WagtailTestUtils

This commit is contained in:
Karl Hobley 2014-07-04 16:14:42 +01:00
parent 2def3b3859
commit bfa04dfd24

View file

@ -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)