def test_hosts_decorator_overrides_env_hosts_with_task_decorator_first():
    @task
    @hosts('bar')
    def command():
        pass
    eq_hosts(command, ['bar'], env={'hosts': ['foo']})
If @hosts is used it replaces any env.hosts value even with @task
dataset/ETHPy150Open fabric/fabric/tests/test_main.py/test_hosts_decorator_overrides_env_hosts_with_task_decorator_first