def runTest(self): actual_contents = lines_content(['no match', 'MATCH', 'not match']) regex_arg_str = syntax_for_regex_matcher('MATCH') self._check_variants_with_expectation_type( args_constructor_for(line_matcher=regex_arg_str), expected_result_of_positive_test=PassOrFail.FAIL, quantifier=Quantifier.ALL, actual_file_contents=actual_contents, )
def runTest(self): actual_contents = lines_content( ['the first MATCH', 'the MATCH again', 'MATCH finally']) regex_arg_str = syntax_for_regex_matcher('.*MATCH') self._check_variants_with_expectation_type( args_constructor_for(line_matcher=regex_arg_str), expected_result_of_positive_test=PassOrFail.PASS, quantifier=Quantifier.ALL, actual_file_contents=actual_contents, )
def runTest(self): self._check_variants_with_expectation_type_and_any_or_every( tr.args_constructor_for(line_matcher=NOT_A_LINE_MATCHER))