File: test_data.py

package info (click to toggle)
solaar 1.1.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,936 kB
  • sloc: python: 26,935; sh: 444; xml: 158; makefile: 75
file content (15 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from hid_parser.data import Button
from hid_parser.data import Consumer


def test_consumer():
    consumer = Consumer()

    assert consumer.PLAY_PAUSE == 0xCD


def test_button():
    button = Button()

    assert button.NO_BUTTON == 0x0
    assert button.BUTTON_1 == 0x1