Test client handler should call set_script_prefix
|Reported by:||Joost Cassee||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Since  every HTTP handler calls
urlresolvers.set_script_prefix to set the prefix for reverse URL resolving. The only except in the handler used by the test client.
The problem I am solving may seem a bit esoteric. I'm trying to remove the necessity of monkey-patching the
urlresolvers.reverse function in the (third-party)
localeurl app. My solution is to append to the script prefix for the request, but because the test client handler does not reset it at every request my tests fail.
The attached patch makes the test client handler call
set_script_prefix at every request.