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

Function test_copy

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

Source from the content-addressed store, hash-verified

148
149
150def test_copy():
151 likes = pm.eval('({"color": "blue", "fruit": "apple", "pet": "dog"})')
152 otherLikes = likes.copy()
153 otherLikes["color"] = "yellow"
154
155 assert likes == {"color": "blue", "fruit": "apple", "pet": "dog"}
156 assert otherLikes == {"color": "yellow", "fruit": "apple", "pet": "dog"}
157
158# update
159

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected