def METHOD_NAME(self):
    with session.begin():
        task = data_setup.create_task()
    out = run_client(['bkr', 'task-list', '--xml'])
    self.assert_('<task name="%s">\n\t<params/>\n</task>\n' % task.name
            in out, out)