

def test_reverseKeymap(self):
    '\n        Verify that a L{ConsoleInput} has a reverse mapping of the keysym names\n        it needs for event handling to their corresponding keysym.\n        '
    ci = ConsoleInput(None)
    for eventName in prefixedMethodNames(ConsoleInput, 'key_'):
        keysymName = eventName.split('_')[(- 1)]
        keysymValue = getattr(gtk.keysyms, keysymName)
        self.assertEqual(ci.rkeymap[keysymValue], keysymName)

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/manhole/ui/test/test_gtk2manhole.py ConsoleInputTests.test_reverseKeymap/original