'Test the legacy behaviour
:return:'

def test_legacy_file_does_not_exists(self):

    self.logger.info('Test    for    non    existing    file    with    the    legacy    behaviour')
    task = HdfsSensor(task_id='Should_not_be_file_legacy', filepath='/datadirectory/not_existing_file_or_directory', timeout=1, retry_delay=timedelta(seconds=1), poke_interval=1, hook=self.hook)
    with self.assertRaises(AirflowSensorTimeout):
        task.execute(None)
