API for Expectations¶
Part of the Object based program API.
- class ExpectationApi¶
Returned by
- CreateAgentImageExpectation()¶
Creates a prompt-based agent image expectation.
- Returns:
The prompt-based agent image expectation
- Return type:
- CreateAudioExpectation()¶
Creates an audio expectation.
- Returns:
The audio expectation
- Return type:
- CreateBinaryExpressionExpectation(expression)¶
Creates a binary expectation to be used in TsEdiabas.
- Parameters:
- expression : str¶
String expression
- Returns:
The binary expression expectation
- Return type:
- CreateBitStreamExpectation()¶
Creates a bit stream expectation.
- Returns:
Bit stream expectation
- Return type:
- CreateBitStreamExpressionExpectation(expression)¶
Creates a bit stream expression expectation.
- Parameters:
- expression : str¶
The expression text
- Returns:
The bit stream expectation
- Return type:
- CreateBooleanExpectation(truthValue)¶
Creates a boolean expectation.
- Parameters:
- truthValue : bool¶
The truth value of the expectation
- Returns:
The boolean expression expectation
- Return type:
- CreateByteStreamExpectation()¶
Creates a byte stream expectation.
- Returns:
Byte stream expectation
- Return type:
- CreateByteStreamExpressionExpectation(expression)¶
Creates a byte stream expression expectation.
- Parameters:
- expression : str¶
The expression text.
- Returns:
The byte stream expectation
- Return type:
- CreateCurveAllExpectation(expectationObject)¶
Creates a curve expectation. All values of the curve have to fulfill the given expectation.
- Parameters:
- expectationObject¶
The expectation object
- Returns:
The curve expectation
- Return type:
- CreateCurveAllExpressionExpectation(expression)¶
Creates a curve expectation. All values of the curve have to fulfill the given expression.
- Parameters:
- expression : str¶
String expression
- Returns:
The curve expression expectation
- Return type:
- CreateCurveSingleExpectation(dimension)¶
Creates a curve expectation.
- Parameters:
- dimension : int¶
Curve dimension
- Returns:
The curve expectation
- Return type:
- CreateDTCListExpectation()¶
Creates a DTC list expectation.
- Returns:
DTC list expectation, initialized with default values
- Return type:
-
CreateExpressionExpectation(expression=
None)¶ Creates an unspecific expression expectation.
- Parameters:
- expression : str¶
Optional. The expression text.
- Returns:
The unspecific expression expectation
- Return type:
- CreateImageExpectation()¶
Creates an image expectation.
- Returns:
The image expectation
- Return type:
- CreateMapAllExpectation(expectationObject)¶
Creates a map expectation. All values of the map have to fulfill the given expectation.
- Parameters:
- expectationObject¶
The expectation object
- Returns:
The map expectation
- Return type:
- CreateMapAllExpressionExpectation(expression)¶
Creates a map expectation. All values of the map have to fulfill the given expression.
- Parameters:
- expression : str¶
String expression
- Returns:
The map expectation
- Return type:
- CreateMapSingleExpectation(xDimension, yDimension)¶
Creates a map expectation.
- Parameters:
- Returns:
The map expectation
- Return type:
- CreateMatrixAllExpectation(expectationObject)¶
Creates a matrix expectation. All values of the matrix have to fulfill the given expectation.
- Parameters:
- expectationObject¶
The expectation object
- Returns:
The matrix expectation
- Return type:
- CreateMatrixAllExpressionExpectation(expression)¶
Creates a matrix expectation. All values of the matrix have to fulfill the given expression.
- Parameters:
- expression : str¶
String expression
- Returns:
The matrix expression expectation
- Return type:
- CreateMatrixSingleExpectation(xDimension, yDimension)¶
Creates a matrix expectation.
- Parameters:
- Returns:
The matrix expectation
- Return type:
- CreateNotPresentExpectation()¶
Creates a ~Not Present~ expectation.
- Returns:
The NotPresent expectation
- Return type:
- CreateNumericExpectation()¶
Creates a numeric expectation.
- Returns:
The numeric expectation
- Return type:
-
CreateNumericExpressionExpectation(expression=
None)¶ Creates a manual numeric expectation.
- Parameters:
- expression : str¶
Optional. The expression text.
- Returns:
The numeric expectation
- Return type:
- CreatePresentExpectation()¶
Creates a ~Present~ expectation.
- Returns:
The Present expectation
- Return type:
- CreateStringExpectation()¶
Creates a string expectation.
- Returns:
The string expectation
- Return type:
-
CreateStringExpressionExpectation(expression=
None)¶ Creates a string expression expectation.
- Parameters:
- expression : str¶
Optional. The expression text.
- Returns:
The string expression expectation
- Return type:
- CreateStringListExpectation()¶
Creates a string list expectation.
- Returns:
The string list expectation
- Return type:
- CreateVectorAllExpectation(expectationObject)¶
Creates a vector expectation. All values of the vector have to fulfill the given expectation.
- Parameters:
- expectationObject¶
The expectation object
- Returns:
The vector expectation
- Return type:
- CreateVectorAllExpressionExpectation(expression)¶
Creates a vector expectation. All values of the vector have to fulfill the given expression.
- Parameters:
- expression : str¶
String expression
- Returns:
The vector expectation
- Return type: