'Task instances without dagruns should fail this dep'

@patch('airflow.models.DagRun.find', return_value=())
def test_dagrun_doesnt_exist(self, dagrun_find):

    dag = DAG('test_dag', max_active_runs=2)
    ti = Mock(task=Mock(dag=dag), get_dagrun=Mock(return_value=None))
    self.assertFalse(DagrunRunningDep().is_met(ti=ti))
