def test_shell_env():
 with shell_env(KEY='value'):
  eq_(env.shell_env['KEY'], 'value')
 eq_(env.shell_env, {})

def test_shell_env ( ) : with shell_env ( KEY = 'value' ) : eq_ ( env . shell_env [ 'KEY' ] , 'value' ) eq_ ( env . shell_env , { } )
shell_env() sets the shell_env attribute in the env dict .