Exemple #1
0
    def testGetFormatStringAttributeNames(self):
        """Tests the GetFormatStringAttributeNames function."""
        event_formatter = msie_webcache.MsieWebCacheContainerEventFormatter()

        expected_attribute_names = [
            u'entry_identifier', u'container_identifier', u'cache_identifier',
            u'url', u'redirect_url', u'access_count', u'sync_count',
            u'cached_filename', u'file_extension', u'cached_file_size',
            u'request_headers', u'response_headers'
        ]

        self._TestGetFormatStringAttributeNames(event_formatter,
                                                expected_attribute_names)
Exemple #2
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = msie_webcache.MsieWebCacheContainerEventFormatter()
     self.assertNotEqual(event_formatter, None)