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

Function test_pop_no_params

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

Source from the content-addressed store, hash-verified

128
129
130def test_pop_no_params():
131 likes = pm.eval('({"color": "blue", "fruit": "apple", "pet": "dog"})')
132 try:
133 likes.pop()
134 assert (False)
135 except Exception as e:
136 assert str(type(e)) == "<class 'TypeError'>"
137 assert str(e) == "pop expected at least 1 argument, got 0"
138
139# clear
140

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected