Documentation incorrect: The Response objects returned by TestClient DO NOT have a "headers" property
|Reported by:||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 8 years ago by
|Patch needs improvement:||unset|