diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-03-13 16:33:56 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-03-13 16:33:56 +0000 |
| commit | dd13596944c3aa312c828ac03a1f1acd8fb60dc2 (patch) | |
| tree | 9cc5d5bb7b4edc7612f56c6f45cefaf41a160d7b /tests | |
| parent | aa900c39a8e3134d09e2285cce030c1b33b1e820 (diff) | |
Fixed #17768 -- Add a comment about an expected failure in generic_views tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/generic_views/edit.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/generic_views/edit.py b/tests/regressiontests/generic_views/edit.py index 182615a86b..2bd982e3d9 100644 --- a/tests/regressiontests/generic_views/edit.py +++ b/tests/regressiontests/generic_views/edit.py @@ -126,6 +126,10 @@ class UpdateViewTests(TestCase): res = self.client.put('/edit/author/%d/update/' % a.pk, {'name': 'Randall Munroe (author of xkcd)', 'slug': 'randall-munroe'}) + # Here is the expected failure. PUT data are not processed in any special + # way by django. So the request will equal to a POST without data, hence + # the form will be invalid and redisplayed with errors (status code 200). + # See also #12635 self.assertEqual(res.status_code, 302) self.assertRedirects(res, 'http://testserver/list/authors/') self.assertQuerysetEqual(Author.objects.all(), ['<Author: Randall Munroe (author of xkcd)>']) |
