From a800036981c6fea8eb3dac22467965c71af05d29 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Fri, 18 Oct 2013 10:02:43 +0100 Subject: Fixed #21287 -- Fixed E123 pep8 warnings --- tests/forms_tests/tests/test_fields.py | 6 +++--- tests/forms_tests/tests/test_formsets.py | 8 ++++---- tests/forms_tests/tests/tests.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/forms_tests') diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index 152e53773e..e04b060916 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -1142,7 +1142,7 @@ class FieldsTests(SimpleTestCase): ('/django/forms/util.py', 'util.py'), ('/django/forms/utils.py', 'utils.py'), ('/django/forms/widgets.py', 'widgets.py') - ] + ] for exp, got in zip(expected, fix_os_paths(f.choices)): self.assertEqual(exp[1], got[1]) self.assertTrue(got[0].endswith(exp[0])) @@ -1163,7 +1163,7 @@ class FieldsTests(SimpleTestCase): ('/django/forms/util.py', 'util.py'), ('/django/forms/utils.py', 'utils.py'), ('/django/forms/widgets.py', 'widgets.py') - ] + ] for exp, got in zip(expected, fix_os_paths(f.choices)): self.assertEqual(exp[1], got[1]) self.assertTrue(got[0].endswith(exp[0])) @@ -1184,7 +1184,7 @@ class FieldsTests(SimpleTestCase): ('/django/forms/util.py', 'util.py'), ('/django/forms/utils.py', 'utils.py'), ('/django/forms/widgets.py', 'widgets.py') - ] + ] for exp, got in zip(expected, fix_os_paths(f.choices)): self.assertEqual(exp[1], got[1]) self.assertTrue(got[0].endswith(exp[0])) diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py index 28ebfd08cc..4b4a4bc001 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -996,9 +996,9 @@ class FormsFormsetTestCase(TestCase): 'choices-2-votes': '2', 'choices-3-choice': 'Three', 'choices-3-votes': '3', - }, + }, prefix='choices', - ) + ) # But we still only instantiate 3 forms self.assertEqual(len(formset.forms), 3) # and the formset isn't valid @@ -1028,9 +1028,9 @@ class FormsFormsetTestCase(TestCase): 'choices-2-votes': '2', 'choices-3-choice': 'Three', 'choices-3-votes': '3', - }, + }, prefix='choices', - ) + ) # Four forms are instantiated and no exception is raised self.assertEqual(len(formset.forms), 4) finally: diff --git a/tests/forms_tests/tests/tests.py b/tests/forms_tests/tests/tests.py index 618ab8e07c..159d03ab7e 100644 --- a/tests/forms_tests/tests/tests.py +++ b/tests/forms_tests/tests/tests.py @@ -128,7 +128,7 @@ class ModelFormCallableModelDefault(TestCase): 'choice_int': obj2, 'multi_choice': [obj2,obj3], 'multi_choice_int': ChoiceOptionModel.objects.exclude(name="default"), - }).as_p(), """

-- cgit v1.3