def test_roles_decorator_expands_single_iterable():
    role_list = ['foo', 'bar']

    @roles(role_list)
    def command():
        pass

    eq_(command.roles, role_list)


#
# Host exclusion
#
@roles(iterable) should behave like @roles(*iterable)
dataset/ETHPy150Open fabric/fabric/tests/test_main.py/test_roles_decorator_expands_single_iterable