summaryrefslogtreecommitdiff
path: root/tests/inline_formsets
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@sixmedia.com>2013-12-09 00:20:06 +0700
committerTim Graham <timograham@gmail.com>2013-12-10 15:12:48 -0500
commita2814846ca006b4fbf3a893ec52cd9d444b3a3eb (patch)
tree780498814e830e2b8ee6ac435575afdc2e8e63f6 /tests/inline_formsets
parent0873200e7f61315ad375061a3dc6d37b514ff985 (diff)
downloaddjango-a2814846ca006b4fbf3a893ec52cd9d444b3a3eb.tar.gz
Fixed E124 pep8 warnings.
Diffstat (limited to 'tests/inline_formsets')
-rw-r--r--tests/inline_formsets/tests.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/inline_formsets/tests.py b/tests/inline_formsets/tests.py
index 707115878f..e3c37bb320 100644
--- a/tests/inline_formsets/tests.py
+++ b/tests/inline_formsets/tests.py
@@ -123,7 +123,8 @@ 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.
"""
- six.assertRaisesRegex(self, Exception,
+ six.assertRaisesRegex(
+ self, Exception,
"<class 'inline_formsets.models.Child'> has more than 1 ForeignKey to <class 'inline_formsets.models.Parent'>",
inlineformset_factory, Parent, Child
)
@@ -133,7 +134,8 @@ class InlineFormsetFactoryTest(TestCase):
If we specify fk_name, but it isn't a ForeignKey from the child model
to the parent model, we should get an exception.
"""
- self.assertRaises(Exception,
+ self.assertRaises(
+ Exception,
"fk_name 'school' is not a ForeignKey to <class 'inline_formsets.models.Parent'>",
inlineformset_factory, Parent, Child, fk_name='school'
)
@@ -143,7 +145,8 @@ class InlineFormsetFactoryTest(TestCase):
If the field specified in fk_name is not a ForeignKey, we should get an
exception.
"""
- six.assertRaisesRegex(self, Exception,
+ six.assertRaisesRegex(
+ self, Exception,
"<class 'inline_formsets.models.Child'> has no field named 'test'",
inlineformset_factory, Parent, Child, fk_name='test'
)