dfa0c8e3a8
Add a new rudimentary test inspired by the examples from jmespath's README file ([1]). [1]: https://github.com/jmespath/jmespath.py/blob/develop/README.rst Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> [Thomas: add entry in DEVELOPERS file] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
5 lines
154 B
Python
5 lines
154 B
Python
import jmespath
|
|
expression = jmespath.compile('foo.bar')
|
|
res = expression.search({'foo': {'bar': 'baz'}})
|
|
assert res == "baz", "expression.search failed"
|