Example #1
0
    def testGetFormatStringAttributeNames(self):
        """Tests the GetFormatStringAttributeNames function."""
        event_formatter = mac_wifi.MacWifiLogFormatter()

        expected_attribute_names = [u'action', u'user', u'function', u'text']

        self._TestGetFormatStringAttributeNames(event_formatter,
                                                expected_attribute_names)
Example #2
0
 def setUp(self):
     """Makes preparations before running an individual test."""
     self._formatter = mac_wifi.MacWifiLogFormatter()
Example #3
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = mac_wifi.MacWifiLogFormatter()
     self.assertIsNotNone(event_formatter)