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

Method test_md5

test/test_grid_file.py:128–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 self.assertEqual(b"", g.read(0))
127
128 def test_md5(self):
129 f = GridIn(self.db.fs)
130 f.write(b"hello world\n")
131 f.close()
132 self.assertEqual(None, f.md5)
133
134 def test_alternate_collection(self):
135 self.db.alt.files.delete_many({})

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
closeMethod · 0.95
GridInClass · 0.90

Tested by

no test coverage detected