'Tests for bug #15672 (\'request\' referenced before assignment)'

def test_bad_path_info(self):

    environ = RequestFactory().get(u'/').environ
    environ[u'PATH_INFO'] = ('\xed' if six.PY2 else u'\xed')
    handler = WSGIHandler()
    response = handler(environ, (lambda *a, **k: None))
    self.assertEqual(response.status_code, 400)
