Module testing¶
-
sismic.testing.
state_is_entered
(steps, name)¶ Holds if state was entered during given steps.
Parameters: - steps (
Union
[MacroStep
,List
[MacroStep
]]) – a macrostep or list of macrosteps - name (
str
) – name of a state
Return type: Returns: given state was entered
- steps (
-
sismic.testing.
state_is_exited
(steps, name)¶ Holds if state was exited during given steps.
Parameters: - steps (
Union
[MacroStep
,List
[MacroStep
]]) – a macrostep or list of macrosteps - name (
str
) – name of a state
Return type: Returns: given state was exited
- steps (
-
sismic.testing.
event_is_fired
(steps, name, parameters=None)¶ Holds if an event was fired during given steps.
If name is None, this function looks for any event. If parameters are provided, their values are compared with the respective attribute of the event. Not all parameters have to be provided, as only the ones that are provided are actually compared.
Parameters: Return type: Returns: event was fired
-
sismic.testing.
event_is_consumed
(steps, name, parameters=None)¶ Holds if an event was consumed during given steps.
If name is None, this function looks for any event. If parameters are provided, their values are compared with the respective attribute of the event. Not all parameters have to be provided, as only the ones that are provided are actually compared.
Parameters: Return type: Returns: event was consumed
-
sismic.testing.
transition_is_processed
(steps, transition)¶ Holds if a transition was processed during given steps.
If no transition is provided, this function looks for any transition.
Parameters: - steps (
Union
[MacroStep
,List
[MacroStep
]]) – a macrostep or list of macrosteps - transition (
Optional
[Transition
]) – a transition
Return type: Returns: transition was processed
- steps (