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

Method test_index_model

test/test_collation.py:133–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.assertCollationInLastCommand()
132
133 def test_index_model(self):
134 model = IndexModel([("a", 1), ("b", -1)], collation=self.collation)
135 self.assertEqual(self.collation.document, model.document["collation"])
136
137 def test_create_index(self):
138 self.db.test.create_index("foo", collation=self.collation)

Callers

nothing calls this directly

Calls 1

IndexModelClass · 0.90

Tested by

no test coverage detected