'Regression test for #15152'

def test_non_ascii_query_string_does_not_crash(self):

    request = self.rf.get('/slash')
    request.META['QUERY_STRING'] = 'drink=caf\xc3\xa9'
    r = CommonMiddleware().process_request(request)
    self.assertEqual(r.status_code, 301)
