def assertTraceContains(response, message):
    """
    Raise TestStepFail if response.verify_trace does not find message from response traces.

    :param response: Response. Must contain method verify_trace
    :param message: Message to look for
    :return: Nothing
    :raises: AttributeError if response does not contain verify_trace method.
    TestStepFail if verify_trace returns False.
    """
    if not hasattr(response, "verify_trace"):
        raise AttributeError("Response object does not contain verify_trace method!")
    if not response.verify_trace(message, False):
        raise TestStepFail('Assert: Message(s) "%s" not in response' % message)
def assertTraceContains ( response , message ) : if not hasattr ( response , "verify_trace" ) : raise AttributeError ( "Response object does not contain verify_trace method!" ) if not response . verify_trace ( message , False ) : raise TestStepFail ( 'Assert: Message(s) "%s" not in response' % message )
Raise TestStepFail if response.verify_trace does not find message from response traces.

    :param response: Response. Must contain method verify_trace
    :param message: Message to look for
    :return: Nothing
    :raises: AttributeError if response does not contain verify_trace method.
    TestStepFail if verify_trace returns False.