Skip to content

Commit

Permalink
Fix a dumb mistake in the test...
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorSMarks committed Jul 23, 2021
1 parent 9531b86 commit 76c6436
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
def mockMciSendStringW(command, buf, bufLen, bufStart):
decodeCommand = command.decode('utf-16')

if command.startswith(u'open '):
if decodeCommand.startswith(u'open '):
testCase.assertEqual(windll.winmm.mciSendStringW(command, buf, bufLen, bufStart), 306) # 306 indicates drivers are missing. It's fine.
return 0

if command.endswith(u' wait'):
if decodeCommand.endswith(u' wait'):
testCase.assertEqual(windll.winmm.mciSendStringW(command, buf, bufLen, bufStart), 0)
sleep(expectedDuration)
return 0

if command.startswith(u'close '):
if decodeCommand.startswith(u'close '):
global sawClose
sawClose = True
testCase.assertEqual(windll.winmm.mciSendStringW(command, buf, bufLen, bufStart), 0)
Expand Down

0 comments on commit 76c6436

Please sign in to comment.