'test the file size behaviour with regex
:return:'

def test_should_match_regex_but_filesize(self):

    self.logger.debug(('#' * 10))
    self.logger.debug('Running    %s', self._testMethodName)
    self.logger.debug(('#' * 10))
    compiled_regex = re.compile('test[1-2]file')
    task = HdfsSensorRegex(task_id='Should_match_the_regex_but_filesize', filepath='/datadirectory/regex_dir', regex=compiled_regex, file_size=20, timeout=1, retry_delay=timedelta(seconds=1), poke_interval=1, hook=self.hook)
    with self.assertRaises(AirflowSensorTimeout):
        task.execute(None)
