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

def test_append_slash_quoted(self):

    settings.APPEND_SLASH = True
    request = self._get_request('needsquoting#')
    r = CommonMiddleware().process_request(request)
    self.assertEquals(r.status_code, 301)
    self.assertEquals(r['Location'], 'http://testserver/middleware/needsquoting%23/')
