def METHOD_NAME(self):
    with session.begin():
        task1 = data_setup.create_task(type=[u'Regression'])
        task2 = data_setup.create_task()
    out = run_client(['bkr', 'task-list', "--type=Regression"])
    self.assertIn(task1.name, out)
    self.assertNotIn(task2.name, out)