summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
authorcoagulant <baryshev@gmail.com>2013-11-03 01:02:56 +0400
committerTim Graham <timograham@gmail.com>2013-11-02 18:20:39 -0400
commit3bc0d46a840f17dce561daca8a6b8690b2cf5d0a (patch)
treec25954abbde0c4c06af7f862effcd351047cddf9 /tests/model_forms
parent2a03a9a9a1c4517be75e72899e545b0bc9dd0688 (diff)
downloaddjango-3bc0d46a840f17dce561daca8a6b8690b2cf5d0a.tar.gz
Fixed all E261 warnings
Diffstat (limited to 'tests/model_forms')
-rw-r--r--tests/model_forms/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py
index 2da852d11e..ddc7a4ceef 100644
--- a/tests/model_forms/tests.py
+++ b/tests/model_forms/tests.py
@@ -318,7 +318,7 @@ class ModelFormBaseTest(TestCase):
class Meta:
model = Category
- fields = [] # url will still appear, since it is explicit above
+ fields = [] # url will still appear, since it is explicit above
self.assertIsInstance(ReplaceField.base_fields['url'],
forms.fields.BooleanField)
@@ -348,7 +348,7 @@ class ModelFormBaseTest(TestCase):
class CategoryForm(forms.ModelForm):
class Meta:
model = Category
- fields = ('url') # note the missing comma
+ fields = ('url') # note the missing comma
def test_exclude_fields(self):
class ExcludeFields(forms.ModelForm):
@@ -374,7 +374,7 @@ class ModelFormBaseTest(TestCase):
class CategoryForm(forms.ModelForm):
class Meta:
model = Category
- exclude = ('url') # note the missing comma
+ exclude = ('url') # note the missing comma
def test_confused_form(self):
class ConfusedForm(forms.ModelForm):
@@ -415,7 +415,7 @@ class ModelFormBaseTest(TestCase):
)
def test_bad_form(self):
- #First class with a Meta class wins...
+ # First class with a Meta class wins...
class BadForm(ArticleForm, BaseCategoryForm):
pass
@@ -818,10 +818,10 @@ class ModelToDictTests(TestCase):
with self.assertNumQueries(1):
d = model_to_dict(art)
- #Ensure all many-to-many categories appear in model_to_dict
+ # Ensure all many-to-many categories appear in model_to_dict
for c in categories:
self.assertIn(c.pk, d['categories'])
- #Ensure many-to-many relation appears as a list
+ # Ensure many-to-many relation appears as a list
self.assertIsInstance(d['categories'], list)
class OldFormForXTests(TestCase):