class_docstr: Test class for SyslogParser
class_docstr_tok: ["Test","class","for","SyslogParser"]
docstr: Syslog Parser - Parse
docstr_tok: ["Syslog","Parser","-","Parse"]
code: def test_parse(self):
      """Syslog Parser - Parse"""
      options = {
          "schema": {
              "timestamp": "string",
              "host": "string",
              "application": "string",
              "message": "string",
          }
      }
      data = (
          "Jan 26 19:35:33 vagrant-ubuntu-trusty-64 "
          "sudo: pam_unix(sudo:session): "
          "session opened for user root by (uid=0)"
      )
  
      expected_record = {
          "timestamp": "Jan 26 19:35:33",
          "host": "vagrant-ubuntu-trusty-64",
          "application": "sudo",
          "message": "pam_unix(sudo:session): session opened for user root by (uid=0)",
      }
  
      # get parsed data
      parser = SyslogParser(options)
      result = parser._parse(data)
      assert_equal(result, [(expected_record, True)])
  
imports: from nose.tools import assert_equal
  from streamalert.classifier.parsers import SyslogParser
label_desc: Use image node_id 1 for calling the TestSyslogParser obj's underlying member method code with example usage: obj.test_parse() without return types