diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-26 18:27:42 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-26 18:27:42 -0700 |
| commit | b35ff0d9208c426cc0f67c65d724972974734f57 (patch) | |
| tree | 90d724e0b7a367d485712d79bfd4027717c8c08b /tests/forms_tests | |
| parent | 3351e94ffa37d3824a49b687125ee4a430b69bbe (diff) | |
Fixed all the E203 violations
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_forms.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index 0f1b8882f3..aecf8f32d5 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1793,17 +1793,17 @@ class FormsTestCase(TestCase): class NameForm(Form): name = NameField(validators=[bad_names]) - form = NameForm(data={'name' : ['bad', 'value']}) + form = NameForm(data={'name': ['bad', 'value']}) form.full_clean() self.assertFalse(form.is_valid()) self.assertEqual(form.errors, {'name': ['bad value not allowed']}) - form = NameForm(data={'name' : ['should be overly', 'long for the field names']}) + form = NameForm(data={'name': ['should be overly', 'long for the field names']}) self.assertFalse(form.is_valid()) self.assertEqual(form.errors, {'name': ['Ensure this value has at most 10 characters (it has 16).', 'Ensure this value has at most 10 characters (it has 24).']}) - form = NameForm(data={'name' : ['fname', 'lname']}) + form = NameForm(data={'name': ['fname', 'lname']}) self.assertTrue(form.is_valid()) - self.assertEqual(form.cleaned_data, {'name' : 'fname lname'}) + self.assertEqual(form.cleaned_data, {'name': 'fname lname'}) def test_multivalue_deep_copy(self): """ @@ -1912,7 +1912,7 @@ class FormsTestCase(TestCase): form = JSONForm(data={'json': '{}'}) form.full_clean() - self.assertEqual(form.cleaned_data, {'json' : {}}) + self.assertEqual(form.cleaned_data, {'json': {}}) def test_boundfield_label_tag(self): class SomeForm(Form): |
