Carla Test Helper v0.1.14 CarlaTestHelper.V1.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

Helper function for asserting a gallery card at index is not null

Helper function for asserting the gallery card at index contains a button with the label label

Helper function for asserting the gallery card at index contains a button with the label label and contains the given uri

Helper function for asserting the gallery card at index contains a button with the label label and 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, expected_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 the button
Link to this function assert_button_url(response, label, expected_uri, expected_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 the button
  • params - Expected parameter values of the uri