Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Distributive-Network/PythonMonkey
/ test_get_method
Function
test_get_method
tests/python/test_dict_methods.py:531–533 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
529
530
531
def
test_get_method():
532
dishes = pm.eval(
"({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})"
)
533
assert dishes.get(
'eggs'
) == 2
534
535
# get method shadowing
536
Callers
nothing calls this directly
Calls
1
get
Method · 0.80
Tested by
no test coverage detected