Fixed #18456 -- Escape path returned by `HttpRequest.get_full_path()`.

https://code.djangoproject.com/ticket/18456
Is that really more readable than 4 `assertEqual` ?