ubuntu-buildroot/support/testing/tests/package/sample_python_jmespath.py

5 lines
154 B
Python
Raw Normal View History

2024-04-01 15:19:46 +00:00
import jmespath
expression = jmespath.compile('foo.bar')
res = expression.search({'foo': {'bar': 'baz'}})
assert res == "baz", "expression.search failed"