summaryrefslogtreecommitdiff
path: root/tests/regressiontests/inline_formsets/tests.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2012-09-07 15:43:28 -0400
committerAndrew Godwin <andrew@aeracode.org>2012-09-07 15:43:28 -0400
commit828d691f62814edf3e93d981c0f991a48781fb79 (patch)
tree10aeb64ecaa08678aebad730deac73dbb5646d94 /tests/regressiontests/inline_formsets/tests.py
parentca9c3cd39fade827cced1b5198dd37bb80c208b0 (diff)
parent5999eb42eb6dad6a74c43eb6e9d96ac368ad97b4 (diff)
Merge branch 'master' into schema-alteration
Diffstat (limited to 'tests/regressiontests/inline_formsets/tests.py')
-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'
)