Carla Test Helper v0.1.0 CarlaTestHelper.Assertions View Source

Assertions used by CarlaTestHelper

Link to this section Summary

Functions

Helper function for asserting that the first button in response that has the label label contains the given value

Helper function for asserting that message contains a string

Link to this section Functions

Link to this function assert_button_payload(response, label, value) View Source

Helper function for asserting that the first button in response that has the label label contains the given value.

Parameters:

  • response - The response to search through
  • label - The label of the button to find.
  • value - Expected value of that button.
Link to this function assert_contains(message, string) View Source

Helper function for asserting that message contains a string

Parameters:

  • message - The message to search
  • string - The string to find.