MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_md5

Method test_md5

test/test_gridfs.py:524–535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

522 gridfs.GridFS((self.rs_or_single_client(w=0)).pymongo_test)
523
524 def test_md5(self):
525 gin = self.fs.new_file()
526 gin.write(b"no md5 sum")
527 gin.close()
528 self.assertIsNone(gin.md5)
529
530 gout = self.fs.get(gin._id)
531 self.assertIsNone(gout.md5)
532
533 _id = self.fs.put(b"still no md5 sum")
534 gout = self.fs.get(_id)
535 self.assertIsNone(gout.md5)
536
537
538class TestGridfsReplicaSet(IntegrationTest):

Callers

nothing calls this directly

Calls 5

new_fileMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45
getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected