django.test.Client response has wrong request type
|Reported by:||Jari Pennanen||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
django.test.Client gives out response objects that has
request attribute, but the attribute is not HttpRequest, it is dict.
I'm trying to write tests for requests object (not the request data dict), I need for instance
HttpRequest.get_full_path(). For my disappointment I noticed that Client can create the request objects but it truncates them to dicts at one point and places this to response.request.
I do not know what is wanted behavior but I'm now looking for a way to initialize
HttpRequest manually for these tests, which probably is a better idea for this specific case anyway.