summaryrefslogtreecommitdiff
path: root/tests/forms_tests
diff options
context:
space:
mode:
authorDmitry Dygalo <dadygalo@gmail.com>2016-07-21 10:28:40 +0200
committerMarkus Holtermann <info@markusholtermann.eu>2016-07-21 10:08:19 -0400
commitca32979cdcafe28cc9cba2c189787e536fef9bb9 (patch)
tree3befb4bf9f46c5e6486039ad7eab549405a00518 /tests/forms_tests
parenta05d86a69a7f11f00032b8d7846932b139c670e0 (diff)
Made miscellaneous code cleanups
Diffstat (limited to 'tests/forms_tests')
-rw-r--r--tests/forms_tests/tests/test_formsets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py
index d432a5d2d9..2cd86342b9 100644
--- a/tests/forms_tests/tests/test_formsets.py
+++ b/tests/forms_tests/tests/test_formsets.py
@@ -1316,10 +1316,10 @@ class TestIsBoundBehavior(SimpleTestCase):
unbound_formset = ArticleFormSet()
bound_formset = ArticleFormSet(data)
- empty_forms = []
-
- empty_forms.append(unbound_formset.empty_form)
- empty_forms.append(bound_formset.empty_form)
+ empty_forms = [
+ unbound_formset.empty_form,
+ bound_formset.empty_form
+ ]
# Empty forms should be unbound
self.assertFalse(empty_forms[0].is_bound)