Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Distributive-Network/PythonMonkey
/ test_keys_iter
Function
test_keys_iter
tests/python/test_dict_methods.py:210–215 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
208
209
210
def
test_keys_iter():
211
obj = pm.eval(
"({ a: 123, b: 'test' })"
)
212
result = []
213
for
i in obj.keys():
214
result.append(i)
215
assert result == [
'a'
,
'b'
]
216
217
218
def
test_keys_iter_reverse():
Callers
nothing calls this directly
Calls
1
append
Method · 0.80
Tested by
no test coverage detected