tests.test_hut module — hid-tools documentation

# tests.test_hut module

class TestHUT

  Bases: `object`

  pages = {0: 'Undefined', 1: 'Generic Desktop', 2: 'Simulation Controls', 3: 'VR Controls', 4: 'Sports Controls', 5: 'Gaming Controls', 6: 'Generic Device Controls', 7: 'Keyboard', 8: 'LEDs', 9: 'Button', 10: 'Ordinals', 11: 'Telephony Devices', 12: 'Consumer Devices', 13: 'Digitizers', 14: 'Haptic', 16: 'Unicode', 18: 'Eye and Head Trackers', 20: 'Auxiliary Display', 32: 'Sensor', 64: 'Medical Instruments', 65: 'Braille Display', 89: 'Lighting and Illumination', 128: 'Monitor', 129: 'Monitor Enumerated Values', 130: 'VESA Virtual Controls', 131: 'VESA Command', 132: 'Power Device', 133: 'Battery System', 140: 'Bar Code Scanner', 141: 'Scale', 142: 'Magnetic Stripe Reading', 144: 'Camera Control', 145: 'Arcade Page OAAF', 146: 'Gaming Device', 61904: 'FIDO Alliance', 65280: 'Vendor Defined Page 1', 65293: 'Wacom'}
  test_32_bit_usage_lookup()
  test_duplicate_pages()
  test_hut_exists()
  test_hut_size()
  test_up01_generic_desktop()
  test_up0c_consumer_devices()
  test_up0d_digitizers()
  test_up12_eye_and_head_trackers()
  test_up20_sensor()
  test_up41_braille_display()
  test_up59_lighting_and_illumination()
  test_up84_power_device()
  test_usage_gd()
  test_usage_page_names()
  test_usage_pages()