def test_fail_due_to_unexpected_result_from__validate_post_sds(self): self._check_source_and_exe_variants__failing_assertions( PARSER_THAT_GIVES_SUCCESSFUL_INSTRUCTION, Arrangement.phase_agnostic(), MultiSourceExpectation.phase_agnostic( validation=ValidationAssertions.post_sds_fails() ), )
def test_fail_due_to_unexpected_result_from_post_sds_validation(self): self._check_raises_test_error__single_and_multi( ConstantParser(_MATCHER_THAT_MATCHES), Expectation( execution=ExecutionExpectation( validation=ValidationAssertions.post_sds_fails(), ), ) )
def test_SHOULD_match_WHEN_post_sds_validation_fails_expectedly_but_primitive_value_is_unexpected( self): # ARRANGE # sdv_of_actual = RegexSdvConstantTestImpl( ARBITRARY_PATTERN, value_validator=ConstantDdvValidator( post_sds_result=asrt_validation. new_single_string_text_for_test('expected failure')), ) assertion_to_check = sut.matches_regex_sdv( dir_dependencies=DirDependencies.NONE, validation=ValidationAssertions.post_sds_fails(), primitive_value=check_of_primitive_value_fails_expectedly, ) # ACT & ASSERT # assertion_to_check.apply_without_message(self, sdv_of_actual)