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

Function test_items_substract

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

Source from the content-addressed store, hash-verified

456
457
458def test_items_substract():
459 car = pm.eval('({"brand": "Ford","model": "Mustang","year": 1964})')
460 a = car.items()
461 b = a - [('brand', 'Ford')]
462 assert b == {('model', 'Mustang'), ('year', 1964.0)}
463
464
465def test_items_or():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected