diff --git a/test/unit/common/middleware/test_xprofile.py b/test/unit/common/middleware/test_xprofile.py index b49c2c7c05..0e8bd0bb44 100644 --- a/test/unit/common/middleware/test_xprofile.py +++ b/test/unit/common/middleware/test_xprofile.py @@ -164,7 +164,8 @@ class TestProfileMiddleware(unittest.TestCase): resp = self.app(env2, self.start_response) self.assertEqual(self.got_statuses, ['405 Method Not Allowed'], resp) - wsgi_input = StringIO.StringIO(body + '&profile=135&download=download') + # use a totally bogus profile identifier + wsgi_input = StringIO.StringIO(body + '&profile=ABC&download=download') environ['wsgi.input'] = wsgi_input resp = self.app(environ, self.start_response) self.assertEqual(self.got_statuses, ['404 Not Found'], resp)