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

Method test_close

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

Source from the content-addressed store, hash-verified

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)
379 f.close()
380 with self.assertRaises(ValueError):
381 f.write("test")
382 f.close()
383
384 def test_closed(self):
385 f = GridIn(self.db.fs, chunkSize=5)

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
writeMethod · 0.95
GridInClass · 0.90

Tested by

no test coverage detected