def testGetFormatName(self): typetext(self.app1, "here we are") copytext(self.app1) self.assertEquals( [GetFormatName(f) for f in GetClipboardFormats()], ['CF_UNICODETEXT', 'CF_LOCALE', 'CF_TEXT', 'CF_OEMTEXT'])
def testGetClipBoardFormats(self): typetext(self.app1, "here we are") copytext(self.app1) self.assertEquals(GetClipboardFormats(), [13, 16, 1, 7])