'URLs which require quoting should be redirected to their slash version.'

@override_settings(APPEND_SLASH=True)
def test_append_slash_quoted(self):

    request = self.rf.get(quote('/needsquoting#'))
    response = HttpResponseNotFound()
    r = CommonMiddleware().process_response(request, response)
    self.assertEqual(r.status_code, 301)
    self.assertEqual(r.url, '/needsquoting%23/')
