'test that running task with mark_success param update task state as SUCCESS
without running task.'

@patch.object(TI, u'pool_full')
def test_run_pooling_task_with_mark_success(self, mock_pool_full):

    mock_pool_full.return_value = True
    dag = models.DAG(dag_id=u'test_run_pooling_task_with_mark_success')
    task = DummyOperator(task_id=u'test_run_pooling_task_with_mark_success_op', dag=dag, pool=u'test_run_pooling_task_with_mark_success_pool', owner=u'airflow', start_date=datetime.datetime(2016, 2, 1, 0, 0, 0))
    ti = TI(task=task, execution_date=datetime.datetime.now())
    ti.run(mark_success=True)
    self.assertEqual(ti.state, models.State.SUCCESS)
