161
159
call_cxt = patch('subprocess.call')
162
160
cc_cxt = patch('subprocess.check_call')
164
162
side_effect=lambda cls: juju_version)
168
166
autospec=True, return_value=[])
169
167
env_cxt = temp_env({'environments': {'bar': {'type': 'foo'}}})
170
168
with call_cxt, cc_cxt, gv_cxt, gjo_cxt, env_cxt, imc_cxt: