BitStreamExpectation

class BitStreamExpectation

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:

BitStreamExpectation

GetExpression()

Returns the expectation expression.

Returns:

The expectation expression

Return type:

str

GetMaskExpression()

Returns the mask expression.

Returns:

The mask expression

Return type:

str

GetSizeExpectation()

Returns the size expectation, or None, if the size of the BitStream has no expectation.

Returns:

The size expectation

Return type:

NumericExpectation

RemoveSizeExpectation()

Removes the size expectation.

SetExpression(expression)

Sets the expectation expression.

Parameters:
expression : str

The expectation expression, e.g. ‘BitStream(0x0, 32)’

SetMaskExpression(expression)

Sets the mask expression.

Parameters:
expression : str

The mask expression, e.g. ‘BitStream(0x0, 32)’

SetSizeExpectation(expectation)

Sets the size expectation.

Parameters:
expectation

The numeric expectation