def test_roles_as_tuples():
 @roles('r1')
 def command():
  pass
 eq_hosts(command, ['a', 'b'], env={'roledefs': tuple_roles})
 eq_effective_roles(command, ['r1'], env={'roledefs': fake_roles})

def test_roles_as_tuples ( ) : @ roles ( 'r1' ) def command ( ) : pass eq_hosts ( command , [ 'a' , 'b' ] , env = { 'roledefs' : tuple_roles } ) eq_effective_roles ( command , [ 'r1' ] , env = { 'roledefs' : fake_roles } )
test that a list of roles as a tuple succeeds .