Merge "Fix sporadic false failure in xprofile unit test code (master)"

This commit is contained in:
Jenkins
2014-08-21 21:20:44 +00:00
committed by Gerrit Code Review

View File

@@ -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)