[py3] Compared response.content with bytes.

This commit is contained in:
Aymeric Augustin 2012-08-14 11:57:18 +02:00
parent d1452f6097
commit faf570df18
9 changed files with 61 additions and 53 deletions

View file

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