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

Function test_update_iterable

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

Source from the content-addressed store, hash-verified

189
190
191def test_update_iterable():
192 car = pm.eval('({"brand": "Ford","model": "Mustang","year": 1964})')
193 car.update([('y', 3), ('z', 0)])
194 assert car == {'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'y': 3, 'z': 0}
195
196
197def test_update_iterable_wrong_type():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected