def __init__( self, symbol_name: str, actual: ValidationActual, ): self._symbol_context = StringSourceSymbolContext.of_sdv( symbol_name, sdvs.StringSourceSdvConstantTestImpl( ddvs.StringSourceDdvWoResolvingTestImpl( ddv_validators.constant(actual)))) self.syntax = self._symbol_context.abstract_syntax self._expectation = validation.Expectation.corresponding_to(actual) self._assertions = ValidationAssertions.corresponding_to(actual)
def expectation(self) -> ValidationAssertions: return ValidationAssertions.corresponding_to(self.actual)