text: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  """Tests for the Windows event data attribute containers."""
  
  from __future__ import unicode_literals
  
  import unittest
  import uuid
  
  from plaso.containers import windows_events
  
  from tests import test_lib as shared_test_lib
  
  
  class WindowsDistributedLinkTrackingEventDataTest(shared_test_lib.BaseTestCase):
    """Tests for the Windows distributed link event data attribute container."""
  
    def testGetAttributeNames(self):
      """Tests the GetAttributeNames function."""
      test_uuid = uuid.UUID(uuid.uuid1().hex)
      attribute_container = (
          windows_events.WindowsDistributedLinkTrackingEventData(test_uuid, None))
  
      expected_attribute_names = [
          'data_type', 'mac_address', 'offset', 'origin', 'parser', 'query',
          'uuid']
  
      attribute_names = sorted(attribute_container.GetAttributeNames())
  
      self.assertEqual(attribute_names, expected_attribute_names)
  
  
  class WindowsVolumeEventDataTest(shared_test_lib.BaseTestCase):
    """Tests for the Windows volume event data attribute container."""
  
    def testGetAttributeNames(self):
      """Tests the GetAttributeNames function."""
      attribute_container = windows_events.WindowsVolumeEventData()
  
      expected_attribute_names = [
          'data_type', 'device_path', 'offset', 'origin', 'parser', 'query',
          'serial_number']
  
      attribute_names = sorted(attribute_container.GetAttributeNames())
  
      self.assertEqual(attribute_names, expected_attribute_names)
  
  
  if __name__ == '__main__':
    unittest.main()
  