def testGetFormatStringAttributeNames(self): """Tests the GetFormatStringAttributeNames function.""" event_formatter = asl.ASLFormatter() expected_attribute_names = [ 'message_id', 'level', 'user_sid', 'group_id', 'read_uid', 'read_gid', 'computer_name', 'sender', 'facility', 'message', 'extra_information'] self._TestGetFormatStringAttributeNames( event_formatter, expected_attribute_names)
def testInitialization(self): """Tests the initialization.""" event_formatter = asl.ASLFormatter() self.assertIsNotNone(event_formatter)