aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/tests
diff options
context:
space:
mode:
authorPaolo Melchiorre <paulox@paulox.net>2014-07-03 11:46:05 +0200
committerPaolo Melchiorre <paulox@paulox.net>2014-07-03 11:46:05 +0200
commiteb11c5fca0ae826c5306808bfba683e6cc9e918a (patch)
tree815979efb7b3cd1ad5044588c30447a2ae5d1b65 /wkhtmltopdf/tests
parent690770de89e9f82808f3524be8c9bc3eac553780 (diff)
downloaddjango-wkhtmltopdf-eb11c5fca0ae826c5306808bfba683e6cc9e918a.tar.gz
django-wkhtmltopdf-eb11c5fca0ae826c5306808bfba683e6cc9e918a.tar.bz2
django-wkhtmltopdf-eb11c5fca0ae826c5306808bfba683e6cc9e918a.zip
Aligned test to code update.
Diffstat (limited to 'wkhtmltopdf/tests')
-rw-r--r--wkhtmltopdf/tests/tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/wkhtmltopdf/tests/tests.py b/wkhtmltopdf/tests/tests.py
index 7365d05..f296c8e 100644
--- a/wkhtmltopdf/tests/tests.py
+++ b/wkhtmltopdf/tests/tests.py
@@ -78,7 +78,7 @@ class TestViews(TestCase):
inline_fileheader = 'inline; filename="{0}"'
def test_pdf_response(self):
- """Should generate the correct HttpResponse object and mimetype"""
+ """Should generate the correct HttpResponse object and content type."""
# 404
response = PDFResponse(content='', status=404)
self.assertEqual(response.status_code, 404)
@@ -130,9 +130,6 @@ class TestViews(TestCase):
response = PDFResponse(content=content,
content_type='application/x-pdf')
self.assertEqual(response['Content-Type'], 'application/x-pdf')
- response = PDFResponse(content=content,
- mimetype='application/x-pdf')
- self.assertEqual(response['Content-Type'], 'application/x-pdf')
def test_pdf_template_response(self, show_content=False):
"""Test PDFTemplateResponse."""