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

Method assertInvalid

test/test_bson.py:134–135  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

132
133class TestBSON(unittest.TestCase):
134 def assertInvalid(self, data):
135 self.assertRaises(InvalidBSON, decode, data)
136
137 def check_encode_then_decode(self, doc_class=dict, decoder=decode, encoder=encode):
138 def helper(doc):

Callers 2

test_basic_validationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected