Fix tests.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-02 01:16:31 -04:00
parent 489b6ae190
commit 793fd74d7f
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -207,7 +207,7 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase):
with self.document.open() as file_object:
self.assert_download_response(
self, response, content=file_object.read(),
response, content=file_object.read(),
basename=TEST_SMALL_DOCUMENT_FILENAME,
mime_type=self.document.file_mimetype
)
@@ -237,7 +237,7 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase):
with self.document.open() as file_object:
self.assert_download_response(
self, response, content=file_object.read(),
response, content=file_object.read(),
basename=TEST_SMALL_DOCUMENT_FILENAME,
mime_type=self.document.file_mimetype
)
@@ -267,7 +267,7 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase):
with self.document.open() as file_object:
self.assert_download_response(
self, response, content=file_object.read(),
response, content=file_object.read(),
basename='{} - {}'.format(
TEST_SMALL_DOCUMENT_FILENAME,
self.document.latest_version.timestamp