Carla Test Helper v0.1.14 CarlaTestHelper.GenericAssertions View Source

Generic Assertions used by CarlaTestHelper

Link to this section Summary

Functions

Helpers function for asserting a resulting response action with an expected action

Helper function for asserting a response uri contains a uri

Helper function for asserting a response uri contains a uri and parameters

Link to this section Functions

Link to this function assert_action(expected_action, actual_action) View Source

Helpers function for asserting a resulting response action with an expected action.

Parameters:

  • expected_action - Action expected from the response
  • actual_action - Resulting action from the response
Link to this function assert_uri(uri, expected_uri) View Source

Helper function for asserting a response uri contains a uri.

Parameters:

  • uri - The resulting uri
  • expected_uri - The expected uri to be contained in the resulting uri
Link to this function assert_uri(uri, expected_uri, expected_params) View Source

Helper function for asserting a response uri contains a uri and parameters.

Parameters:

  • uri - The resulting uri
  • expected_uri - The expected uri to be contained in the resulting uri
  • expected_params - The expected paramms to be contained in the resulting uri