'should honor @hosts on passed-in task objects'

def test_should_honor_hosts_decorator(self):

    hostlist = ['a', 'b', 'c']
    @hosts(*hostlist[:])
    def task():
        eq_(env.host_string, hostlist.pop(0))
    with hide('running'):
        execute(task)
