MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_get_no_params

Function test_get_no_params

tests/python/test_dict_methods.py:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_get_no_params():
25 likes = pm.eval('({"color": "blue", "fruit": "apple", "pet": "dog"})')
26 try:
27 likes.get()
28 assert (False)
29 except Exception as e:
30 assert str(type(e)) == "<class 'TypeError'>"
31 assert str(e) == "get expected at least 1 argument, got 0"
32
33# setdefault
34

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected