'If the previous TI did not complete execution this dep should fail.'

def test_prev_ti_bad_state(self):

    task = self._get_task(depends_on_past=True, start_date=datetime(2016, 1, 1), wait_for_downstream=False)
    prev_ti = Mock(state=State.NONE, are_dependents_done=Mock(return_value=True))
    ti = Mock(task=task, previous_ti=prev_ti, execution_date=datetime(2016, 1, 2))
    dep_context = DepContext(ignore_depends_on_past=False)
    self.assertFalse(PrevDagrunDep().is_met(ti=ti, dep_context=dep_context))
