Пример #1
0
def test_move_to():
    backup = mouse.get_pos()
    TO = (100, 100)
    mouse.move_to(TO)
    assert mouse.get_pos() == TO
    mouse.move_to(backup)
Пример #2
0
def test_get_pos():
    result = mouse.get_pos()
    assert isinstance(result, tuple) and len(result) == 2