Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
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 /
words /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
14
B
-rw-r--r--
test_basechat.py
2.42
KB
-rw-r--r--
test_basesupport.py
2.93
KB
-rw-r--r--
test_domish.py
19.36
KB
-rw-r--r--
test_irc.py
98.94
KB
-rw-r--r--
test_irc_service.py
9.81
KB
-rw-r--r--
test_ircsupport.py
10.36
KB
-rw-r--r--
test_jabberclient.py
16.16
KB
-rw-r--r--
test_jabbercomponent.py
13.58
KB
-rw-r--r--
test_jabbererror.py
11.08
KB
-rw-r--r--
test_jabberjid.py
6.72
KB
-rw-r--r--
test_jabberjstrports.py
945
B
-rw-r--r--
test_jabbersasl.py
8.95
KB
-rw-r--r--
test_jabbersaslmechanisms.py
5.83
KB
-rw-r--r--
test_jabberxmlstream.py
44.04
KB
-rw-r--r--
test_jabberxmppstringprep.py
5.31
KB
-rw-r--r--
test_service.py
27.99
KB
-rw-r--r--
test_tap.py
2.12
KB
-rw-r--r--
test_xishutil.py
9.11
KB
-rw-r--r--
test_xmlstream.py
5.92
KB
-rw-r--r--
test_xmpproutertap.py
2.34
KB
-rw-r--r--
test_xpath.py
10.35
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_basesupport.py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.internet import defer, error from twisted.trial import unittest from twisted.words.im import basesupport class DummyAccount(basesupport.AbstractAccount): """ An account object that will do nothing when asked to start to log on. """ loginHasFailed = False loginCallbackCalled = False def _startLogOn(self, *args): """ Set self.loginDeferred to the same as the deferred returned, allowing a testcase to .callback or .errback. @return: A deferred. """ self.loginDeferred = defer.Deferred() return self.loginDeferred def _loginFailed(self, result): self.loginHasFailed = True return basesupport.AbstractAccount._loginFailed(self, result) def _cb_logOn(self, result): self.loginCallbackCalled = True return basesupport.AbstractAccount._cb_logOn(self, result) class DummyUI: """ Provide just the interface required to be passed to AbstractAccount.logOn. """ clientRegistered = False def registerAccountClient(self, result): self.clientRegistered = True class ClientMsgTests(unittest.TestCase): def makeUI(self): return DummyUI() def makeAccount(self): return DummyAccount("la", False, "la", None, "localhost", 6667) def test_connect(self): """ Test that account.logOn works, and it calls the right callback when a connection is established. """ account = self.makeAccount() ui = self.makeUI() d = account.logOn(ui) account.loginDeferred.callback(None) def check(result): self.assertFalse(account.loginHasFailed, "Login shouldn't have failed") self.assertTrue(account.loginCallbackCalled, "We should be logged in") d.addCallback(check) return d def test_failedConnect(self): """ Test that account.logOn works, and it calls the right callback when a connection is established. """ account = self.makeAccount() ui = self.makeUI() d = account.logOn(ui) account.loginDeferred.errback(Exception()) def err(reason): self.assertTrue(account.loginHasFailed, "Login should have failed") self.assertFalse(account.loginCallbackCalled, "We shouldn't be logged in") self.assertTrue( not ui.clientRegistered, "Client shouldn't be registered in the UI" ) cb = lambda r: self.assertTrue(False, "Shouldn't get called back") d.addCallbacks(cb, err) return d def test_alreadyConnecting(self): """ Test that it can fail sensibly when someone tried to connect before we did. """ account = self.makeAccount() ui = self.makeUI() account.logOn(ui) self.assertRaises(error.ConnectError, account.logOn, ui)
Close