예제 #1
0
    def testGetFormatStringAttributeNames(self):
        """Tests the GetFormatStringAttributeNames function."""
        event_formatter = iis.IISLogFileEventFormatter()

        expected_attribute_names = [
            u'http_method', u'requested_uri_stem', u'source_ip', u'dest_ip',
            u'dest_port', u'http_status', u'sent_bytes', u'received_bytes',
            u'user_agent', u'protocol_version'
        ]

        self._TestGetFormatStringAttributeNames(event_formatter,
                                                expected_attribute_names)
예제 #2
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = iis.IISLogFileEventFormatter()
     self.assertNotEqual(event_formatter, None)