original_docstring: Provide context failures related to envelope key issues.
  
          Args:
              base_message (str): Base error message to be reported with extra context
              envelope_keys (list): A collection of the envelope keys for this nested schema
              test_record (dict): Actual record being tested - this could be one of
                  many records extracted using jsonpath_rw
          
docstring: Provide context failures related to envelope key issues.
docstring_tokens: Provide context failures related to envelope key issues .
code: def report_envelope_key_error(self, base_message, envelope_keys, test_record):
          """Provide context failures related to envelope key issues.
  
          Args:
              base_message (str): Base error message to be reported with extra context
              envelope_keys (list): A collection of the envelope keys for this nested schema
              test_record (dict): Actual record being tested - this could be one of
                  many records extracted using jsonpath_rw
          """
          missing_env_key_list = set(envelope_keys).difference(set(test_record))
          if missing_env_key_list:
              missing_key_list = ', '.join('\'{}\''.format(key) for key in missing_env_key_list)
              message = ('{} Data is invalid due to missing envelope key(s) in test record: '
                         '{}.'.format(base_message, missing_key_list))
  
              self.status_messages.append(StatusMessage(StatusMessage.FAILURE, message))
              return True
  
          return False
code_tokens: def report_envelope_key_error ( self , base_message , envelope_keys , test_record ) : missing_env_key_list = set ( envelope_keys ) . difference ( set ( test_record ) ) if missing_env_key_list : missing_key_list = ', ' . join ( '\'{}\'' . format ( key ) for key in missing_env_key_list ) message = ( '{} Data is invalid due to missing envelope key(s) in test record: ' '{}.' . format ( base_message , missing_key_list ) ) self . status_messages . append ( StatusMessage ( StatusMessage . FAILURE , message ) ) return True return False
short_docstring: Provide context failures related to envelope key issues.
short_docstring_tokens: Provide context failures related to envelope key issues .
comment: """Provide context failures related to envelope key issues.
  
          Args:
              base_message (str): Base error message to be reported with extra context
              envelope_keys (list): A collection of the envelope keys for this nested schema
              test_record (dict): Actual record being tested - this could be one of
                  many records extracted using jsonpath_rw
          """