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

Method test_hash

test/test_code.py:88–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.assertFalse(b != Code("hello", None))
87
88 def test_hash(self):
89 self.assertRaises(TypeError, hash, Code("hello world"))
90
91 def test_scope_preserved(self):
92 a = Code("hello")

Callers

nothing calls this directly

Calls 1

CodeClass · 0.90

Tested by

no test coverage detected