7 result
= subprocess
.run(['juju', 'switch'], stdout
=subprocess
.PIPE
)
9 result
.returncode
== 0 and
10 len(result
.stdout
.decode().strip()) > 0)
12 bootstrapped
= pytest
.mark
.skipif(
13 not is_bootstrapped(),
14 reason
='bootstrapped Juju environment required')