[pywin32-checkins] pywin32/win32/test test_win32api.py,1.11,1.12
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-06-01 14:57:22
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7399/test Modified Files: test_win32api.py Log Message: Correct VkKeyScan arg handling and add tests Index: test_win32api.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32api.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** test_win32api.py 16 Jul 2006 11:04:20 -0000 1.11 --- test_win32api.py 1 Jun 2007 14:57:19 -0000 1.12 *************** *** 158,161 **** --- 158,169 ---- self.failUnlessEqual(x, win32api.GetLastError()) + def testVkKeyScan(self): + # hopefully ' ' doesn't depend on the locale! + self.failUnlessEqual(win32api.VkKeyScan(' '), 32) + + def testVkKeyScanEx(self): + # hopefully ' ' doesn't depend on the locale! + self.failUnlessEqual(win32api.VkKeyScanEx(' ', 0), 32) + if __name__ == '__main__': unittest.main() |