minor fixes in tests

This commit is contained in:
Bastien Gérard
2019-12-20 23:20:15 +01:00
parent 0053b30237
commit 332bd767d4
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ class TestFileField(MongoDBTestCase):
result = StreamFile.objects.first()
assert streamfile == result
assert result.the_file.read() == text + more_text
# self.assertEqual(result.the_file.content_type, content_type)
# assert result.the_file.content_type == content_type
result.the_file.seek(0)
assert result.the_file.tell() == 0
assert result.the_file.read(len(text)) == text