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

5 lines
154 B
Python

import jmespath
expression = jmespath.compile('foo.bar')
res = expression.search({'foo': {'bar': 'baz'}})
assert res == "baz", "expression.search failed"