support/testing: add new test for python-jmespath

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>
This commit is contained in:
Raphaël Mélotte
2022-06-14 18:47:53 +02:00
committed by Thomas Petazzoni
parent a38da5e3ca
commit dfa0c8e3a8
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import jmespath
expression = jmespath.compile('foo.bar')
res = expression.search({'foo': {'bar': 'baz'}})
assert res == "baz", "expression.search failed"