示例#1
0
    def testGetFormatStringAttributeNames(self):
        """Tests the GetFormatStringAttributeNames function."""
        event_formatter = olecf.OleCfSummaryInfoFormatter()

        expected_attribute_names = [
            u'title', u'subject', u'author', u'keywords', u'comments',
            u'template', u'revision_number', u'last_saved_by',
            u'total_edit_time', u'number_of_pages', u'number_of_words',
            u'number_of_characters', u'application', u'security'
        ]

        self._TestGetFormatStringAttributeNames(event_formatter,
                                                expected_attribute_names)
示例#2
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = olecf.OleCfSummaryInfoFormatter()
     self.assertIsNotNone(event_formatter)