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

Function test_items_iter

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

Source from the content-addressed store, hash-verified

429
430
431def test_items_iter():
432 obj = pm.eval("({ a: 123, b: 'test' })")
433 result = []
434 for i in obj.items():
435 result.append(i)
436 assert result == [('a', 123.0), ('b', 'test')]
437
438
439def test_items_iter_reversed():

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected