original_docstring: A simple check to see if this log type is defined in the sources for the service
  
          Args:
              base_message (str): Base error message to be reported with extra context
              test_event (dict): Actual record data being tested
  
          Returns:
              bool: False if the log type is not in the sources list, True if it is
          
docstring: A simple check to see if this log type is defined in the sources for the service
docstring_tokens: A simple check to see if this log type is defined in the sources for the service
code: def check_log_declared_in_sources(self, base_message, test_event):
          """A simple check to see if this log type is defined in the sources for the service
  
          Args:
              base_message (str): Base error message to be reported with extra context
              test_event (dict): Actual record data being tested
  
          Returns:
              bool: False if the log type is not in the sources list, True if it is
          """
          source = test_event['source']
          service = test_event['service']
          log = test_event['log'].split(':')[0]
          if not log in self.cli_config['sources'][service][source]['logs']:
              message = ('The \'sources.json\' file does not include the log type \'{}\' '
                         'in the list of logs for this service & entity (\'{}:{}\').')
              message = '{} {}'.format(base_message, message.format(log, service, source))
              self.status_messages.append(StatusMessage(StatusMessage.FAILURE, message))
              return False
  
          return True
code_tokens: def check_log_declared_in_sources ( self , base_message , test_event ) : source = test_event [ 'source' ] service = test_event [ 'service' ] log = test_event [ 'log' ] . split ( ':' ) [ 0 ] if not log in self . cli_config [ 'sources' ] [ service ] [ source ] [ 'logs' ] : message = ( 'The \'sources.json\' file does not include the log type \'{}\' ' 'in the list of logs for this service & entity (\'{}:{}\').' ) message = '{} {}' . format ( base_message , message . format ( log , service , source ) ) self . status_messages . append ( StatusMessage ( StatusMessage . FAILURE , message ) ) return False return True
short_docstring: A simple check to see if this log type is defined in the sources for the service
short_docstring_tokens: A simple check to see if this log type is defined in the sources for the service
comment: """A simple check to see if this log type is defined in the sources for the service
  
          Args:
              base_message (str): Base error message to be reported with extra context
              test_event (dict): Actual record data being tested
  
          Returns:
              bool: False if the log type is not in the sources list, True if it is
          """