From 76c64363ebceeed2984a4b3d440ab728d9f13605 Mon Sep 17 00:00:00 2001 From: Taylor Date: Thu, 22 Jul 2021 21:18:42 -0400 Subject: [PATCH] Fix a dumb mistake in the test... --- test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index cde9d49..9447775 100644 --- a/test.py +++ b/test.py @@ -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)