Beispiel #1
0
def test_fail__valid_hid_mouse_wheel(arg: Any) -> None:
    with pytest.raises(ValidatorError):
        print(valid_hid_mouse_wheel(arg))
Beispiel #2
0
def test_ok__valid_hid_mouse_wheel__m200() -> None:
    assert valid_hid_mouse_wheel(-200) == -127
Beispiel #3
0
def test_ok__valid_hid_mouse_wheel__p200() -> None:
    assert valid_hid_mouse_wheel(200) == 127
Beispiel #4
0
def test_ok__valid_hid_mouse_wheel(arg: Any) -> None:
    assert valid_hid_mouse_wheel(arg) == int(str(arg).strip())