MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / test_file_cmp

Method test_file_cmp

tests/fields/test_file_field.py:301–308  ·  view source on GitHub ↗

Test comparing against other types

(self)

Source from the content-addressed store, hash-verified

299 assert test_file.the_file.content_type == "text/plain"
300
301 def test_file_cmp(self):
302 """Test comparing against other types"""
303
304 class TestFile(Document):
305 the_file = FileField()
306
307 test_file = TestFile()
308 assert test_file.the_file not in [{"test": 1}]
309
310 def test_file_disk_space(self):
311 """Test disk space usage when we delete/replace a file"""

Callers

nothing calls this directly

Calls 1

TestFileClass · 0.85

Tested by

no test coverage detected