'Tests that URLs which require quoting are redirected to their slash
version ok.'

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

    request = self._get_request(u'customurlconf/needsquoting#')
    request.urlconf = u'middleware.extra_urls'
    r = CommonMiddleware().process_request(request)
    self.assertFalse((r is None), u'CommonMiddlware    failed    to    return    APPEND_SLASH    redirect    using    request.urlconf')
    self.assertEqual(r.status_code, 301)
    self.assertEqual(r.url, u'http://testserver/middleware/customurlconf/needsquoting%23/')
