diff options
author | Padraic Harley <padraic@thelodgeronline.com> | 2016-01-29 12:45:30 +0000 |
---|---|---|
committer | Padraic Harley <padraic@thelodgeronline.com> | 2016-01-29 12:45:30 +0000 |
commit | 61bec5852aed5399bc251dfd06118c584792f0d1 (patch) | |
tree | 25edadc9fe761257fcab5c40393b8a56d991a19f /wkhtmltopdf | |
parent | e4f9b2fc20d61642663db5cae419609b0f06a228 (diff) | |
download | django-wkhtmltopdf-61bec5852aed5399bc251dfd06118c584792f0d1.tar.gz django-wkhtmltopdf-61bec5852aed5399bc251dfd06118c584792f0d1.tar.bz2 django-wkhtmltopdf-61bec5852aed5399bc251dfd06118c584792f0d1.zip |
Fix py26 bug and copypasta error
Python 2.6 doesn't allow empty format arguments: ``{}`` must be ``{0}``.
Also second test is ``inline`` rather than ``attachment``.
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r-- | wkhtmltopdf/tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wkhtmltopdf/tests/tests.py b/wkhtmltopdf/tests/tests.py index 5344e09..983e10a 100644 --- a/wkhtmltopdf/tests/tests.py +++ b/wkhtmltopdf/tests/tests.py @@ -137,7 +137,7 @@ class TestViews(TestCase): else: filename = '.pdf' self.assertEqual(response['Content-Disposition'], - 'attachment; filename="{}"'.format(filename)) + 'attachment; filename="{0}"'.format(filename)) # Content as a direct output response = PDFResponse(content=content, filename="nospace.pdf", @@ -161,7 +161,7 @@ class TestViews(TestCase): else: filename = '.pdf' self.assertEqual(response['Content-Disposition'], - 'attachment; filename="{}"'.format(filename)) + 'inline; filename="{0}"'.format(filename)) # Content-Type response = PDFResponse(content=content, |