Carla Test Helper v0.1.3 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

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

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

Helper function for asserting that the first button in response that has the label label contains the given uri and params

Link to this section Functions

Link to this function assert_button(response, label) View Source

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

Parameters:

  • response - The response to search through
  • label - The label of the button to find
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_button_url(response, label, uri) View Source

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

Parameters:

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

Helper function for asserting that the first button in response that has the label label contains the given uri and params

Parameters:

  • response - The response to search through
  • label - The label of the button to find.
  • uri - Expected value of that button.
  • params - Expected parameter values of the uri.