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

Method assertRepr

test/test_operations.py:29–32  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

27 """Base class for testing operations module."""
28
29 def assertRepr(self, obj):
30 new_obj = eval(repr(obj))
31 self.assertEqual(type(new_obj), type(obj))
32 self.assertEqual(repr(new_obj), repr(obj))
33
34
35class TestIndexModel(TestOperationsBase):

Callers 2

test_reprMethod · 0.45
test_reprMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected