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


#
# Fabfile loading
#
Roles may be callables returning lists, as well as regular lists
dataset/ETHPy150Open fabric/fabric/tests/test_main.py/test_lazy_roles