Пример #1
0
    def testGetFormatStringAttributeNames(self):
        """Tests the GetFormatStringAttributeNames function."""
        event_formatter = olecf.OLECFDocumentSummaryInfoFormatter()

        expected_attribute_names = [
            'number_of_bytes', 'number_of_lines', 'number_of_paragraphs',
            'number_of_slides', 'number_of_notes', 'number_of_hidden_slides',
            'number_of_clips', 'company', 'manager', 'shared_document',
            'application_version', 'content_type', 'content_status',
            'language', 'document_version'
        ]

        self._TestGetFormatStringAttributeNames(event_formatter,
                                                expected_attribute_names)
Пример #2
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = olecf.OLECFDocumentSummaryInfoFormatter()
     self.assertIsNotNone(event_formatter)