MCPcopy Create free account
hub / github.com/mhammond/pywin32 / factory

Method factory

com/win32com/test/testIterators.py:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105class WrappedPythonCOMServerTestCase(_BaseTestCase):
106 def setUp(self):
107 def factory():
108 ob = self.object.GetCollection()
109 flags = pythoncom.DISPATCH_METHOD | pythoncom.DISPATCH_PROPERTYGET
110 enum = ob._oleobj_.Invoke(pythoncom.DISPID_NEWENUM, 0, flags, 1)
111 return ob, enum.QueryInterface(pythoncom.IID_IEnumVARIANT)
112
113 self.expected_data = [1,'Two',3]
114 sv = win32com.server.util.wrap(SomeObject(self.expected_data))

Callers

nothing calls this directly

Calls 3

GetCollectionMethod · 0.80
InvokeMethod · 0.45
QueryInterfaceMethod · 0.45

Tested by

no test coverage detected