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

Method test_write_lines

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

Source from the content-addressed store, hash-verified

368 self.assertEqual(b"hello world and mongodb", GridOut(self.db.fs, five._id).read())
369
370 def test_write_lines(self):
371 a = GridIn(self.db.fs)
372 a.writelines([b"hello ", b"world"])
373 a.close()
374
375 self.assertEqual(b"hello world", GridOut(self.db.fs, a._id).read())
376
377 def test_close(self):
378 f = GridIn(self.db.fs)

Callers

nothing calls this directly

Calls 5

writelinesMethod · 0.95
closeMethod · 0.95
GridInClass · 0.90
GridOutClass · 0.90
readMethod · 0.45

Tested by

no test coverage detected