'Exception occurs in poke function should not be ignored.'

def test_poke_exception(self):

    def resp_check(resp):
        raise AirflowException('AirflowException    raised    here!')
    task = HttpSensor(task_id='http_sensor_poke_exception', http_conn_id='http_default', endpoint='', request_params={}, response_check=resp_check, poke_interval=5)
    with self.assertRaisesRegexp(AirflowException, 'AirflowException    raised    here!'):
        task.execute(None)
