Commit ac28a67f by Timothée Peignier

fix tests under python3.3

parent 84a5d6b7
......@@ -39,7 +39,7 @@ class MiddlewareTest(TestCase):
with self.settings(MIDDLEWARE_CLASSES=CUSTOM_MIDDLEWARE):
with pipeline_settings(PIPELINE_ENABLED=True):
response = self.client.get(reverse('admin:index'))
self.assertNotIn(' ', response.content)
self.assertNotIn(b' ', response.content)
def test_middleware_pipeline_disabled(self):
CUSTOM_MIDDLEWARE = (
......@@ -50,4 +50,4 @@ class MiddlewareTest(TestCase):
with self.settings(MIDDLEWARE_CLASSES=CUSTOM_MIDDLEWARE):
with pipeline_settings(PIPELINE_ENABLED=False):
response = self.client.get(reverse('admin:index'))
self.assertIn(' ', response.content)
self.assertIn(b' ', response.content)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment