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

Class TestFile

tests/fields/test_file_field.py:231–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 """Ensure that each instance of a FileField is unique"""
230
231 class TestFile(Document):
232 name = StringField()
233 the_file = FileField()
234
235 # First instance
236 test_file = TestFile()

Callers 7

test_file_uniquenessMethod · 0.85
test_file_reassigningMethod · 0.85
test_file_booleanMethod · 0.85
test_file_cmpMethod · 0.85
test_file_disk_spaceMethod · 0.85
test_file_multidbMethod · 0.85

Calls 3

StringFieldClass · 0.85
FileFieldClass · 0.85
ImageFieldClass · 0.85

Tested by 7

test_file_uniquenessMethod · 0.68
test_file_reassigningMethod · 0.68
test_file_booleanMethod · 0.68
test_file_cmpMethod · 0.68
test_file_disk_spaceMethod · 0.68
test_file_multidbMethod · 0.68