@@ -90,7 +90,7 @@ def __init__(self,
9090 self .construct_extra_headers = []
9191 self .post_parse_process = []
9292
93- def gather_request_args (self , ** kwargs ):
93+ def gather_request_args (self ,** kwargs ):
9494 """
9595 Go through the attributes that the message class can contain and
9696 add values if they are missing but exists in the client info or
@@ -444,7 +444,9 @@ def post_parse_response(self, response, **kwargs):
444444 """
445445 return response
446446
447- def gather_verify_arguments (self ):
447+ def gather_verify_arguments (self ,
448+ response : Optional [Union [dict , Message ]] = None ,
449+ behaviour_args : Optional [dict ] = None ):
448450 """
449451 Need to add some information before running verify()
450452
@@ -501,7 +503,11 @@ def _do_response(self, info, sformat, **kwargs):
501503 raise
502504 return resp
503505
504- def parse_response (self , info , sformat = "" , state = "" , ** kwargs ):
506+ def parse_response (self , info ,
507+ sformat : Optional [str ] = "" ,
508+ state : Optional [str ] = "" ,
509+ behaviour_args : Optional [dict ] = None ,
510+ ** kwargs ):
505511 """
506512 This the start of a pipeline that will:
507513
@@ -513,8 +519,8 @@ def parse_response(self, info, sformat="", state="", **kwargs):
513519 3 runs the do_post_parse_response method iff the response was not
514520 an error response.
515521
516- :param info: The response, can be either in a JSON or an urlencoded
517- format
522+ :param behaviour_args:
523+ :param info: The response, can be either in a JSON or an urlencoded format
518524 :param sformat: Which serialization that was used
519525 :param state: The state
520526 :param kwargs: Extra key word arguments
@@ -554,7 +560,7 @@ def parse_response(self, info, sformat="", state="", **kwargs):
554560 if is_error_message (resp ):
555561 LOGGER .debug ('Error response: %s' , resp )
556562 else :
557- vargs = self .gather_verify_arguments ()
563+ vargs = self .gather_verify_arguments (response = resp , behaviour_args = behaviour_args )
558564 LOGGER .debug ("Verify response with %s" , vargs )
559565 try :
560566 # verify the message. If something is wrong an exception is thrown
0 commit comments