def test_host_role_merge_deduping():
 @roles('r1', 'r2')
 @hosts('a')
 def command():
  pass
 true_eq_hosts(command, ['a', 'b', 'c'], env={'roledefs': fake_roles})

def test_host_role_merge_deduping ( ) : @ roles ( 'r1' , 'r2' ) @ hosts ( 'a' ) def command ( ) : pass true_eq_hosts ( command , [ 'a' , 'b' , 'c' ] , env = { 'roledefs' : fake_roles } )
use of @roles and @hosts dedupes when merging .