update tests to work with Python 2.6

This commit is contained in:
Frédéric Péters 2013-04-26 08:58:33 +02:00
parent bbd772575e
commit b16fd40cb8
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ class MiddlewareTestCase(TestCase):
start_response = start_response_cls()
result = app({ 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/__version__'}, start_response)
result = json.loads(''.join(result))
self.assertIsInstance(result, dict)
self.assertIn('nose', result)
self.assertTrue(type(result) is dict)
self.assertTrue('nose' in result)
result = app({ 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/'}, start_response)
self.assertEqual(result, ['xxx'])
self.assertEqual(start_response.status, 'coin')