Sign in
android-kvm
/
buildroot
/
refs/heads/master
/
.
/
support
/
testing
/
tests
/
package
/
sample_python_jmespath.py
blob: aefccd4fd8f8e1e0f4f4aba19d6916faa5f977bf [
file
] [
log
] [
blame
] [
edit
]
import
jmespath
expression
=
jmespath
.
compile
(
'foo.bar'
)
res
=
expression
.
search
({
'foo'
:
{
'bar'
:
'baz'
}})
assert
res
==
"baz"
,
"expression.search failed"