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

Method test_options

test/test_collection.py:699–705  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

697 self.assertNotIn("_id", l)
698
699 def test_options(self):
700 db = self.db
701 db.drop_collection("test")
702 db.create_collection("test", capped=True, size=4096)
703 result = db.test.options()
704 self.assertEqual(result, {"capped": True, "size": 4096})
705 db.drop_collection("test")
706
707 def test_insert_one(self):
708 db = self.db

Callers

nothing calls this directly

Calls 3

drop_collectionMethod · 0.45
create_collectionMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected