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

Method test_distinct

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

Source from the content-addressed store, hash-verified

148 self.assertCollationInLastCommand()
149
150 def test_distinct(self):
151 self.db.test.distinct("foo", collation=self.collation)
152 self.assertCollationInLastCommand()
153
154 self.listener.reset()
155 self.db.test.find(collation=self.collation).distinct("foo")
156 self.assertCollationInLastCommand()
157
158 def test_find_command(self):
159 self.db.test.insert_one({"is this thing on?": True})

Callers

nothing calls this directly

Calls 4

distinctMethod · 0.45
resetMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected