mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
[py3] Compared response.content with bytes.
This commit is contained in:
parent
d1452f6097
commit
faf570df18
9 changed files with 61 additions and 53 deletions
|
@ -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/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue