|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 23.78 GB of 70.42 GB (33.77%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
share/
pyshared/
twisted/
manhole/
ui/
test/
- drwxr-xr-x
|
Viewing file: test_gtk2manhole.py (1.25 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
# Copyright (c) 2009 Twisted Matrix Laboratories. """ Tests for GTK2 GUI manhole. """
skip = False
try: import pygtk pygtk.require("2.0") except: skip = "GTK 2.0 not available" else: try: import gtk except ImportError: skip = "GTK 2.0 not available" except RuntimeError: skip = "Old version of GTK 2.0 requires DISPLAY, and we don't have one." else: if gtk.gtk_version[0] == 1: skip = "Requested GTK 2.0, but 1.0 was already imported." else: from twisted.manhole.ui.gtk2manhole import ConsoleInput
from twisted.trial.unittest import TestCase
from twisted.python.reflect import prefixedMethodNames
class ConsoleInputTests(TestCase): """ Tests for L{ConsoleInput}. """
def test_reverseKeymap(self): """ Verify that a L{ConsoleInput} has a reverse mapping of the keysym names it needs for event handling to their corresponding keysym. """ ci = ConsoleInput(None) for eventName in prefixedMethodNames(ConsoleInput, 'key_'): keysymName = eventName.split("_")[-1] keysymValue = getattr(gtk.keysyms, keysymName) self.assertEqual(ci.rkeymap[keysymValue], keysymName)
skip = skip
|