def test_fail__valid_hid_mouse_delta(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_hid_mouse_delta(arg))
def test_ok__valid_hid_mouse_delta__m200() -> None: assert valid_hid_mouse_delta(-200) == -127
def test_ok__valid_hid_mouse_delta__p200() -> None: assert valid_hid_mouse_delta(200) == 127
def test_ok__valid_hid_mouse_delta(arg: Any) -> None: assert valid_hid_mouse_delta(arg) == int(str(arg).strip())