summaryrefslogtreecommitdiff
path: root/tests/regressiontests/inline_formsets
diff options
context:
space:
mode:
authorNick Martini <nmartini@orcasinc.com>2012-09-07 13:31:01 -0400
committerNick Martini <nmartini@orcasinc.com>2012-09-07 13:31:01 -0400
commit9e190e1c82a287c88636f8fffea125224526f0e5 (patch)
treef4bf6f9ef87d43de90c3a8d095cab9ba151ddb68 /tests/regressiontests/inline_formsets
parent9ce58906af4a5f5a0739598ac10103fef3642419 (diff)
parent292322f977b1844e15ba25d59d1e985461571c15 (diff)
Merge branch 'master' of git://github.com/django/django
Diffstat (limited to 'tests/regressiontests/inline_formsets')
-rw-r--r--tests/regressiontests/inline_formsets/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/inline_formsets/tests.py b/tests/regressiontests/inline_formsets/tests.py
index 6e63f34ed0..e979fb4337 100644
--- a/tests/regressiontests/inline_formsets/tests.py
+++ b/tests/regressiontests/inline_formsets/tests.py
@@ -123,7 +123,7 @@ class InlineFormsetFactoryTest(TestCase):
Child has two ForeignKeys to Parent, so if we don't specify which one
to use for the inline formset, we should get an exception.
"""
- self.assertRaisesRegexp(Exception,
+ six.assertRaisesRegex(self, Exception,
"<class 'regressiontests.inline_formsets.models.Child'> has more than 1 ForeignKey to <class 'regressiontests.inline_formsets.models.Parent'>",
inlineformset_factory, Parent, Child
)
@@ -143,7 +143,7 @@ class InlineFormsetFactoryTest(TestCase):
If the field specified in fk_name is not a ForeignKey, we should get an
exception.
"""
- self.assertRaisesRegexp(Exception,
+ six.assertRaisesRegex(self, Exception,
"<class 'regressiontests.inline_formsets.models.Child'> has no field named 'test'",
inlineformset_factory, Parent, Child, fk_name='test'
)