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

Method test_md5

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
closeMethod · 0.95
AsyncGridInClass · 0.90

Tested by

no test coverage detected