mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Fixed conditional_processing tests
This commit is contained in:
@@ -22,7 +22,7 @@ class ConditionalGet(TestCase):
|
||||
|
||||
def assertFullResponse(self, response, check_last_modified=True, check_etag=True):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.content, FULL_RESPONSE)
|
||||
self.assertEqual(response.content, FULL_RESPONSE.encode())
|
||||
if check_last_modified:
|
||||
self.assertEqual(response['Last-Modified'], LAST_MODIFIED_STR)
|
||||
if check_etag:
|
||||
|
||||
Reference in New Issue
Block a user