Documentation incorrect: The Response objects returned by TestClient DO NOT have a "headers" property
|Reported by:||dstn@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Section http://www.djangoproject.com/documentation/testing/#testing-responses claims that headers is a property of the Response objects returned by the test client's post() and get() methods, but this is not true.
(As of SVN rev 7500)
I have filed this as a documentation bug, but personally I would prefer if that functionality reappeared!
Change History (5)
comment:1 Changed 6 years ago by telenieko
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:4 Changed 6 years ago by russellm
- Resolution set to duplicate
- Status changed from new to closed