[ctypes-commit] ctypes/comtypes/unittests test_basic.py,1.2,1.3
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-02-03 14:10:49
|
Update of /cvsroot/ctypes/ctypes/comtypes/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3424 Modified Files: test_basic.py Log Message: Test inheritance. Index: test_basic.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/comtypes/unittests/test_basic.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_basic.py 13 Jan 2005 09:37:49 -0000 1.2 --- test_basic.py 3 Feb 2005 14:10:41 -0000 1.3 *************** *** 57,60 **** --- 57,67 ---- self.failUnlessEqual(method_count(IMyInterface), 4) + def test_heirarchy(self): + class IMyInterface(IUnknown): + pass + + self.failUnless(issubclass(IMyInterface, IUnknown)) + self.failUnless(issubclass(POINTER(IMyInterface), POINTER(IUnknown))) + def test_mro(self): mro = POINTER(IUnknown).__mro__ |