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

        expected_attribute_names = [
            'description', 'event_type', 'text', 'url', 'record_id', 'room'
        ]

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