'Tests that APPEND_SLASH redirects slashless URLs to a valid pattern.'

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

    request = self._get_request(u'slash')
    r = CommonMiddleware().process_request(request)
    self.assertEqual(r.status_code, 301)
    self.assertEqual(r.url, u'http://testserver/middleware/slash/')
