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

Function test_values_mapping

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

Source from the content-addressed store, hash-verified

420
421
422def test_values_mapping():
423 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
424 values = dishes.values()
425 assert str(values.mapping) == "{'eggs': 2.0, 'sausage': 1.0, 'bacon': 1.0, 'spam': 500.0}"
426 assert values.mapping['spam'] == 500
427
428# items
429

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected