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

Function test_keys_mapping

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

Source from the content-addressed store, hash-verified

377
378
379def test_keys_mapping():
380 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
381 keys = dishes.keys()
382 assert str(keys.mapping) == "{'eggs': 2.0, 'sausage': 1.0, 'bacon': 1.0, 'spam': 500.0}"
383 assert keys.mapping['spam'] == 500
384
385# values
386

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected