def assert_version_header_matches_request(api_microversion_header_name, api_microversion, response_header):
 api_microversion_header_name = api_microversion_header_name.lower()
 if ((api_microversion_header_name not in response_header) or (api_microversion != response_header[api_microversion_header_name])):
  msg = ("Microversion header '%s' with value '%s' does not match in response - %s. " % (api_microversion_header_name, api_microversion, response_header))
  raise exceptions.InvalidHTTPResponseHeader(msg)

def assert_version_header_matches_request ( api_microversion_header_name , api_microversion , response_header ) : api_microversion_header_name = api_microversion_header_name . lower ( ) if ( ( api_microversion_header_name not in response_header ) or ( api_microversion != response_header [ api_microversion_header_name ] ) ) : msg = ( "Microversion header '%s' with value '%s' does not match in response - %s. " % ( api_microversion_header_name , api_microversion , response_header ) ) raise exceptions . InvalidHTTPResponseHeader ( msg )
checks api microversion in response header verify whether microversion is present in response header and with specified api_microversion value .