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

Method test_repr

test/test_operations.py:71–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 """Test SearchIndexModel features."""
70
71 def test_repr(self):
72 self.assertRepr(SearchIndexModel({"hello": "hello"}, key=1))
73 self.assertEqual(
74 repr(SearchIndexModel({"hello": "hello"}, key=1)),
75 "SearchIndexModel(definition={'hello': 'hello'}, key=1)",
76 )
77
78
79if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

SearchIndexModelClass · 0.90
assertReprMethod · 0.45

Tested by

no test coverage detected