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

Function test_items_mapping

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

Source from the content-addressed store, hash-verified

520
521
522def test_items_mapping():
523 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
524 items = dishes.items()
525 assert str(items.mapping) == "{'eggs': 2.0, 'sausage': 1.0, 'bacon': 1.0, 'spam': 500.0}"
526 assert items.mapping['spam'] == 500
527
528# get method
529

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected