Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #17768 -- Add a comment about an expected failure in generic_vi…

…ews tests

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent aa900c3 commit dd13596944c3aa312c828ac03a1f1acd8fb60dc2 @claudep claudep committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/regressiontests/generic_views/
4 tests/regressiontests/generic_views/
@@ -126,6 +126,10 @@ def test_update_put(self):
res = self.client.put('/edit/author/%d/update/' %,
{'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)>'])

0 comments on commit dd13596

Please sign in to comment.
Something went wrong with that request. Please try again.