예제 #1
0
def test_fail__valid_hid_mouse_delta(arg: Any) -> None:
    with pytest.raises(ValidatorError):
        print(valid_hid_mouse_delta(arg))
예제 #2
0
def test_ok__valid_hid_mouse_delta__m200() -> None:
    assert valid_hid_mouse_delta(-200) == -127
예제 #3
0
def test_ok__valid_hid_mouse_delta__p200() -> None:
    assert valid_hid_mouse_delta(200) == 127
예제 #4
0
def test_ok__valid_hid_mouse_delta(arg: Any) -> None:
    assert valid_hid_mouse_delta(arg) == int(str(arg).strip())