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

Function test_items_len

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

Source from the content-addressed store, hash-verified

501
502
503def test_items_len():
504 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
505 items = dishes.items()
506 assert len(items) == 4
507
508# TODO tuple support
509# def test_items_contains():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected