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

Function test_pop_found

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

Source from the content-addressed store, hash-verified

78
79
80def test_pop_found():
81 likes = pm.eval('({"color": "blue", "fruit": "apple", "pet": "dog"})')
82 foundKey = likes.pop('color')
83 assert likes['color'] is None
84 assert foundKey == 'blue'
85
86
87def test_pop_not_found():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected