'APPEND_SLASH should redirect slashless URLs to a valid pattern.'

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

    request = self.rf.get('/slash')
    r = CommonMiddleware().process_request(request)
    self.assertEqual(r.status_code, 301)
