'Test the legacy behaviour
:return:'

def test_legacy_file_exist(self):

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