summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevi Gross <levi@levigross.com>2013-12-25 12:18:14 -0500
committerLevi Gross <levi@levigross.com>2013-12-25 12:18:14 -0500
commit0dd907562247cbf88092a736b82d7d0c27407328 (patch)
treec79ed7858fb7dd6f32c7573228668fbb9e66eee5
parentb798d2bf97a48aac1b0a70e9b3d82457a5212123 (diff)
Fixed unittest typo
-rw-r--r--tests/model_formsets/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_formsets/tests.py b/tests/model_formsets/tests.py
index ac9d68132e..c1e01cd6be 100644
--- a/tests/model_formsets/tests.py
+++ b/tests/model_formsets/tests.py
@@ -55,8 +55,8 @@ class DeletionTests(TestCase):
'form-0-name': 'test',
'form-1-id': '',
'form-1-name': 'x' * 1000, # Too long
- 'form-1-id': six.text_type(poet.id), # Violate unique constraint
- 'form-1-name': 'test2',
+ 'form-2-id': six.text_type(poet.id), # Violate unique constraint
+ 'form-2-name': 'test2',
}
formset = PoetFormSet(data, queryset=Poet.objects.all())
# Make sure this form doesn't pass validation.