Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.52
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
twisted /
conch /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
14
B
-rw-r--r--
keydata.py
34.38
KB
-rw-r--r--
loopback.py
706
B
-rw-r--r--
test_address.py
1.51
KB
-rw-r--r--
test_agent.py
12.91
KB
-rw-r--r--
test_cftp.py
49.32
KB
-rw-r--r--
test_channel.py
11.9
KB
-rw-r--r--
test_checkers.py
30.61
KB
-rw-r--r--
test_ckeygen.py
23.77
KB
-rw-r--r--
test_conch.py
25.14
KB
-rw-r--r--
test_connection.py
28.57
KB
-rw-r--r--
test_default.py
11.32
KB
-rw-r--r--
test_endpoints.py
54.58
KB
-rw-r--r--
test_filetransfer.py
32.36
KB
-rw-r--r--
test_forwarding.py
2.11
KB
-rw-r--r--
test_helper.py
19.56
KB
-rw-r--r--
test_insults.py
31.38
KB
-rw-r--r--
test_keys.py
61.05
KB
-rw-r--r--
test_knownhosts.py
48.34
KB
-rw-r--r--
test_manhole.py
12.95
KB
-rw-r--r--
test_manhole_tap.py
4.25
KB
-rw-r--r--
test_mixin.py
1.03
KB
-rw-r--r--
test_openssh_compat.py
4.76
KB
-rw-r--r--
test_recvline.py
24.84
KB
-rw-r--r--
test_scripts.py
1.74
KB
-rw-r--r--
test_session.py
43.74
KB
-rw-r--r--
test_ssh.py
32.17
KB
-rw-r--r--
test_tap.py
4.92
KB
-rw-r--r--
test_telnet.py
26.18
KB
-rw-r--r--
test_text.py
3.93
KB
-rw-r--r--
test_transport.py
104.76
KB
-rw-r--r--
test_unix.py
2.54
KB
-rw-r--r--
test_userauth.py
32.77
KB
-rw-r--r--
test_window.py
2.06
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_window.py
""" Tests for the insults windowing module, L{twisted.conch.insults.window}. """ from twisted.conch.insults.window import ScrolledArea, TextOutput, TopWindow from twisted.trial.unittest import TestCase class TopWindowTests(TestCase): """ Tests for L{TopWindow}, the root window container class. """ def test_paintScheduling(self): """ Verify that L{TopWindow.repaint} schedules an actual paint to occur using the scheduling object passed to its initializer. """ paints = [] scheduled = [] root = TopWindow(lambda: paints.append(None), scheduled.append) # Nothing should have happened yet. self.assertEqual(paints, []) self.assertEqual(scheduled, []) # Cause a paint to be scheduled. root.repaint() self.assertEqual(paints, []) self.assertEqual(len(scheduled), 1) # Do another one to verify nothing else happens as long as the previous # one is still pending. root.repaint() self.assertEqual(paints, []) self.assertEqual(len(scheduled), 1) # Run the actual paint call. scheduled.pop()() self.assertEqual(len(paints), 1) self.assertEqual(scheduled, []) # Do one more to verify that now that the previous one is finished # future paints will succeed. root.repaint() self.assertEqual(len(paints), 1) self.assertEqual(len(scheduled), 1) class ScrolledAreaTests(TestCase): """ Tests for L{ScrolledArea}, a widget which creates a viewport containing another widget and can reposition that viewport using scrollbars. """ def test_parent(self): """ The parent of the widget passed to L{ScrolledArea} is set to a new L{Viewport} created by the L{ScrolledArea} which itself has the L{ScrolledArea} instance as its parent. """ widget = TextOutput() scrolled = ScrolledArea(widget) self.assertIs(widget.parent, scrolled._viewport) self.assertIs(scrolled._viewport.parent, scrolled)
Close