def METHOD_NAME(self):
    """test Task.flush_buffers"""
    task = task_self()
    worker = task.shell("echo foo bar")
    task.set_default('stdout_msgtree', True)
    # run task
    task.resume()
    task.flush_buffers()
    self.assertEqual(len(list(task.iter_buffers())), 0)