oiddlZddlmZddlmZdadZdZdZGdd Z Gd d Z Gd d Z GddZ dZ dZdZedkreedSdS)N)wrap) CheckCleanct|ddd}t|ddd}||kS)N)reprsplit)ob1ob2addr1addr2s RC:\PYTHON\Scheduler\python\Lib\site-packages\win32com/test/testGatewayAddresses.pyCheckSameCOMObjectr.sR IIOO  a " %E IIOO  a " %E E>c|tj}|tj}t||SN)QueryInterface pythoncom IID_IUnknownr)r r u1u2s rCheckObjectIdentityr5s>  I2 3 3B  I2 3 3B b" % %%rcnt||s$tdz at|d|d|ddSdS)Nrz are not identical (z, ))r numErrorsprint)r r whens rFailObjectIdentityr;sT sC ( (>Q  <<3<>rc"eZdZgZejgZdS)DummyN)__name__ __module__ __qualname___public_methods_rIID_IPersistStorage_com_interfaces_rrr!r!Bs"!56rr!c.eZdZgZejejgZdS)Dummy2N)r"r#r$r%rr&IID_IExternalConnectionr'r(rrr*r*Gs*%)rr*ceZdZgZdS)DelegatedDummyN)r"r#r$r%r(rrr-r-Osrr-c(eZdZgZejgZdZdS)Dummy3c\|tjkrttSdSr)rr+rr-)selfiids r_query_interface_zDummy3._query_interface_Ws, )3 3 3(()) ) 4 3rN)r"r#r$r%rr&r'r3r(rrr/r/Ss5!56*****rr/ctttj}|tj}t ||d|tj}t ||dt ||d|tj}t ||dt ||dt ||d|tj}t ||dt ||dt ||d t ||d dS) Nz!IID_IPersistStorage->IID_IUnknownzIID_IUnknown->IID_IDispatchz"IID_IPersistStorage->IID_IDispatchz+IID_IPersistStorage->IID_IPersistStorage(2)z$IID_IUnknown->IID_IPersistStorage(2)z%IID_IDispatch->IID_IPersistStorage(2)z!IID_IPersistStorage->IID_IPersistzIID_IUnknown->IID_IPersistzIID_IDispatch->IID_IPersistz$IID_IPersistStorage(2)->IID_IPersist) rr!rr&rrr IID_IDispatch IID_IPersist)oo2o3o4o5s rTestGatewayInheritancer<]s6 UWWi344A  )0 1 1Bq"ABBB  92 3 3Br2<===q"BCCC  98 9 9Bq"KLLLr2EFFFr2FGGG  91 2 2Bq"ABBBr2;<<<r2<===r2EFFFFFrctttj}|tj}t ||d|tj}t ||dt ||d|tj}t ||dt ||ddS)Nz,IID_IPersistStorage->IID_IExternalConnectionz8IID_IPersistStorage->IID_IExternalConnection (stability)z,IID_IExternalConnection->IID_IPersistStoragezAIID_IPersistStorage->IID_IExternalConnection->IID_IPersistStorage)rr*rr&rr+r)r7r8o22r9s rTestMultiInterfacer?vs VXXy455A  ); < rEsiJ%%%%%% &&& >>>77777777 ********GGG2(222 zDFFFJLLLLLr