[pywin32-checkins] pywin32/com/win32com/test testShell.py, 1.13, 1.14
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-14 04:44:07
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9233/com/win32com/test Modified Files: testShell.py Log Message: explicitly test FILEGROUPDESCRIPTOR and FILEGROUPDESCRIPTORW Index: testShell.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testShell.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** testShell.py 7 Jan 2009 06:03:29 -0000 1.13 --- testShell.py 14 Jan 2009 04:43:56 -0000 1.14 *************** *** 114,128 **** self.assertEqual(fd, fd2) ! def testSimple(self): ! fgd = shell.FILEGROUPDESCRIPTORAsString([]) header = struct.pack("i", 0) self.assertEqual(header, fgd[:len(header)]) self._testRT(dict()) d = dict() ! fgd = shell.FILEGROUPDESCRIPTORAsString([d]) header = struct.pack("i", 1) self.assertEqual(header, fgd[:len(header)]) self._testRT(d) ! def testComplex(self): if sys.hexversion < 0x2030000: --- 114,134 ---- self.assertEqual(fd, fd2) ! def _testSimple(self, make_unicode): ! fgd = shell.FILEGROUPDESCRIPTORAsString([], make_unicode) header = struct.pack("i", 0) self.assertEqual(header, fgd[:len(header)]) self._testRT(dict()) d = dict() ! fgd = shell.FILEGROUPDESCRIPTORAsString([d], make_unicode) header = struct.pack("i", 1) self.assertEqual(header, fgd[:len(header)]) self._testRT(d) ! ! def testSimpleBytes(self): ! self._testSimple(False) ! ! def testSimpleUnicode(self): ! self._testSimple(True) ! def testComplex(self): if sys.hexversion < 0x2030000: |