'A non-UTF-8 path populates PATH_INFO with an URL-encoded path and
produces a 404.'

def test_bad_path_info(self):

    environ = RequestFactory().get('/').environ
    environ['PATH_INFO'] = '\xed'
    handler = WSGIHandler()
    response = handler(environ, (lambda *a, **k: None))
    self.assertEqual(response.status_code, 404)
