def test_hosts_in_role_dict():
 @roles('r1')
 def command():
  pass
 eq_hosts(command, ['a', 'b'], env={'roledefs': dict_roles})

def test_hosts_in_role_dict ( ) : @ roles ( 'r1' ) def command ( ) : pass eq_hosts ( command , [ 'a' , 'b' ] , env = { 'roledefs' : dict_roles } )
make sure hosts defined in env .