def test_hosts_stripped_env_hosts():
 def command():
  pass
 myenv = {'hosts': [' foo ', 'bar '], 'roles': [], 'exclude_hosts': []}
 eq_hosts(command, ['foo', 'bar'], env=myenv)

def test_hosts_stripped_env_hosts ( ) : def command ( ) : pass myenv = { 'hosts' : [ ' foo ' , 'bar ' ] , 'roles' : [ ] , 'exclude_hosts' : [ ] } eq_hosts ( command , [ 'foo' , 'bar' ] , env = myenv )
make sure hosts defined in env .