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/model_forms/tests.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/model_forms') diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 46f3b95272..9fd220153b 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -466,7 +466,7 @@ class ModelFormBaseTest(TestCase): """ """ - ) + ) def test_orderfields_form(self): class OrderFields(forms.ModelForm): @@ -480,7 +480,7 @@ class ModelFormBaseTest(TestCase): str(OrderFields()), """ """ - ) + ) def test_orderfields2_form(self): class OrderFields2(forms.ModelForm): @@ -831,13 +831,13 @@ class OldFormForXTests(TestCase): """ """ - ) + ) self.assertHTMLEqual( str(f.as_ul()), """
  • """ - ) + ) self.assertHTMLEqual( str(f["name"]), """""") @@ -849,7 +849,7 @@ class OldFormForXTests(TestCase): """
  • Name:
  • Slug:
  • The URL:
  • """ - ) + ) def test_with_data(self): self.assertEqual(Category.objects.count(), 0) @@ -989,7 +989,7 @@ class OldFormForXTests(TestCase): 'pub_date': '1984-02-06', 'writer': six.text_type(w_royko.pk), 'article': 'Hello.' - }, instance=art) + }, instance=art) self.assertEqual(f.errors, {}) self.assertEqual(f.is_valid(), True) test_art = f.save() @@ -1002,7 +1002,7 @@ class OldFormForXTests(TestCase): 'headline': 'New headline', 'slug': 'new-headline', 'pub_date': '1988-01-04' - }, auto_id=False, instance=art) + }, auto_id=False, instance=art) self.assertHTMLEqual(f.as_ul(), '''
  • Headline:
  • Slug:
  • Pub date:
  • ''') @@ -1073,7 +1073,7 @@ class OldFormForXTests(TestCase): 'writer': six.text_type(w_royko.pk), 'article': 'Hello.', 'categories': [six.text_type(c1.id), six.text_type(c2.id)] - }, instance=new_art) + }, instance=new_art) new_art = f.save() self.assertEqual(new_art.id == art_id_1, True) new_art = Article.objects.get(id=art_id_1) @@ -1619,7 +1619,7 @@ class OldFormForXTests(TestCase): f = OptionalImageFileForm( data={'description': 'And a final one'}, files={'image': SimpleUploadedFile('test4.png', image_data2)} - ) + ) self.assertEqual(f.is_valid(), True) instance = f.save() self.assertEqual(instance.image.name, 'tests/test4.png') -- cgit v1.3