def test_ezclick_ezdrag(): btn = config.EzClick('M-1', cmd) assert btn.button == 'Button1' assert btn.modifiers == [config.EzClick.modifier_keys['M']] btn = config.EzDrag('A-2', cmd) assert btn.button == 'Button2' assert btn.modifiers == [config.EzClick.modifier_keys['A']]
def test_ezclick_ezdrag(): btn = config.EzClick("M-1", cmd) assert btn.button == "Button1" assert btn.modifiers == [config.EzClick.modifier_keys["M"]] btn = config.EzDrag("A-2", cmd) assert btn.button == "Button2" assert btn.modifiers == [config.EzClick.modifier_keys["A"]]