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

Method test_encoding_defaultdict

test/test_bson.py:196–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 )
195
196 def test_encoding_defaultdict(self):
197 dct = collections.defaultdict(dict, [("foo", "bar")]) # type: ignore[arg-type]
198 encode(dct)
199 self.assertEqual(dct, collections.defaultdict(dict, [("foo", "bar")]))
200
201 def test_basic_validation(self):
202 self.assertRaises(TypeError, is_valid, 100)

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.90

Tested by

no test coverage detected