Skip to content

Commit

Permalink
add tests for equals
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Sep 7, 2020
1 parent 1b27b0a commit f6716fe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/unittests/test_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ def test_type(self):
self.ahk.type('Hello, World!')
assert b'Hello, World!' in self.notepad.text

def test_type_escapes_equals(self):
'''
https://github.com/spyoungtech/ahk/issues/96
'''
self.notepad.activate()
self.ahk.type('=foo')
assert b'=foo' in self.notepad.text

def test_sendraw_equals(self):
'''
https://github.com/spyoungtech/ahk/issues/96
'''
self.notepad.activate()
self.ahk.send_raw('=foo')
assert b'=foo' in self.notepad.text

def a_down():
time.sleep(0.5)
Expand Down

0 comments on commit f6716fe

Please sign in to comment.