def testGetFormatStringAttributeNames(self):
    """Tests the GetFormatStringAttributeNames function."""
    event_formatter = (
        chrome_extension_activity.ChromeExtensionActivityEventFormatter())

    expected_attribute_names = [
        u'extension_id',
        u'action_type',
        u'activity_id',
        u'page_url',
        u'page_title',
        u'api_name',
        u'args',
        u'other']

    self._TestGetFormatStringAttributeNames(
        event_formatter, expected_attribute_names)
Exemplo n.º 2
0
 def testInitialization(self):
   """Tests the initialization."""
   event_formatter = (
       chrome_extension_activity.ChromeExtensionActivityEventFormatter())
   self.assertIsNotNone(event_formatter)