Ejemplo n.º 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)
Ejemplo n.º 2
0
 def setUp(self):
     """Makes preparations before running an individual test."""
     self._formatter = mac_wifi.MacWifiLogFormatter()
Ejemplo n.º 3
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = mac_wifi.MacWifiLogFormatter()
     self.assertIsNotNone(event_formatter)