Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ test_read_only
Method
test_read_only
test/test_code.py:36–42 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
34
self.assertTrue(Code(
"aoeu"
, {}))
35
36
def
test_read_only(self):
37
c = Code(
"blah"
)
38
39
def
set_c():
40
c.scope = 5
# type: ignore
41
42
self.assertRaises(AttributeError, set_c)
43
44
def
test_code(self):
45
a_string =
"hello world"
Callers
nothing calls this directly
Calls
1
Code
Class · 0.90
Tested by
no test coverage detected