MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / __eq__

Method __eq__

tests/document/test_json_serialisation.py:45–49  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

43 embedded_field = EmbeddedDocumentField(Embedded)
44
45 def __eq__(self, other):
46 return (
47 self.string == other.string
48 and self.embedded_field == other.embedded_field
49 )
50
51 doc = Doc(string="Hi", embedded_field=Embedded(string="Hi"))
52

Callers

nothing calls this directly

Calls 1

to_jsonMethod · 0.45

Tested by

no test coverage detected