def testGetFormatStringAttributeNames(self): """Tests the GetFormatStringAttributeNames function.""" event_formatter = syslog.SyslogLineFormatter() expected_attribute_names = [u'reporter', u'pid', u'body'] self._TestGetFormatStringAttributeNames(event_formatter, expected_attribute_names)
def testInitialization(self): """Tests the initialization.""" event_formatter = syslog.SyslogLineFormatter() self.assertNotEqual(event_formatter, None)