Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Remove a test for gzipped_html
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishbah committed Oct 1, 2014
1 parent 26d8694 commit 1c7c492
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,3 @@ def test_non_html_content_type(self):
response = HttpResponse({}, content_type='application/json')
processed_response = self.middleware.process_response(request, response)
self.assertNotIn(b'</script>', processed_response.content)

def test_gzipped_html(self):
# Don't insert if the content had been gzipped.
request = self.factory.get('/')
request.COOKIES = {
settings.RESPONSIVE_COOKIE_NAME: '1024:768:2' # valid responsive cookie
}
response = hello(request)
processed_response = self.middleware.process_response(request, response)
processed_response['Content-Encoding'] = 'gzip'
self.assertFalse(b'</script>' in processed_response.content)

0 comments on commit 1c7c492

Please sign in to comment.