BooleanExpectation

class BooleanExpectation

Returned by

Clone()

Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.

Returns:

A copy of this object

Return type:

BooleanExpectation

GetExpression()

Returns the expectations expression.

Returns:

The expression

Return type:

str

GetValue()

Returns the truth value.

Returns:

The truth value

Return type:

boolean

SetExpression(expression)

Sets the expectations expression. Allowed expressions: ‘value’ for boolean True and ‘not value’ for boolean False.

Parameters:
expression : str

The expression

SetValue(truthValue)

Sets the truth value.

Parameters:
truthValue : boolean

The new truth value