diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-14 11:57:18 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-14 12:29:53 +0200 |
| commit | faf570df187bc82a3bcffa5613165a6e6cc56a57 (patch) | |
| tree | cb4e54d2b5e74ede9abad909c9c2851a2bd674ce /tests/regressiontests/conditional_processing/models.py | |
| parent | d1452f60974da6f0e54ff9ad7a03d2c115675d10 (diff) | |
[py3] Compared response.content with bytes.
Diffstat (limited to 'tests/regressiontests/conditional_processing/models.py')
| -rw-r--r-- | tests/regressiontests/conditional_processing/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/regressiontests/conditional_processing/models.py b/tests/regressiontests/conditional_processing/models.py index d1a8ac605b..dacea34a83 100644 --- a/tests/regressiontests/conditional_processing/models.py +++ b/tests/regressiontests/conditional_processing/models.py @@ -1,4 +1,6 @@ # -*- coding:utf-8 -*- +from __future__ import unicode_literals + from datetime import datetime from django.test import TestCase @@ -28,7 +30,7 @@ class ConditionalGet(TestCase): def assertNotModified(self, response): self.assertEqual(response.status_code, 304) - self.assertEqual(response.content, '') + self.assertEqual(response.content, b'') def testWithoutConditions(self): response = self.client.get('/condition/') |
