def testIsCurrentClipboard(self): do = TestDataObject("Hello from Python") do = WrapCOMObject(do, iid=pythoncom.IID_IDataObject) pythoncom.OleSetClipboard(do) self.failUnless(pythoncom.OleIsCurrentClipboard(do))
def testIsCurrentClipboard(self): do = TestDataObject(b"Hello from Python") do = WrapCOMObject(do, iid=pythoncom.IID_IDataObject) pythoncom.OleSetClipboard(do) self.assertTrue(pythoncom.OleIsCurrentClipboard(do))