Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.60
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python313 /
lib64 /
python3.13 /
test /
support /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-05-05 23:06
_hypothesis_stubs
[ DIR ]
drwxr-xr-x
2026-05-05 23:06
interpreters
[ DIR ]
drwxr-xr-x
2026-05-05 23:06
__init__.py
91.78
KB
-rw-r--r--
2026-03-26 17:22
ast_helper.py
1.79
KB
-rw-r--r--
2026-03-26 17:22
asynchat.py
11.33
KB
-rw-r--r--
2026-03-26 17:22
asyncore.py
19.9
KB
-rw-r--r--
2026-03-26 17:22
bytecode_helper.py
5.63
KB
-rw-r--r--
2026-03-26 17:22
hashlib_helper.py
1.86
KB
-rw-r--r--
2026-03-26 17:22
hypothesis_helper.py
2.04
KB
-rw-r--r--
2026-03-26 17:22
i18n_helper.py
1.98
KB
-rw-r--r--
2026-03-26 17:22
import_helper.py
10.44
KB
-rw-r--r--
2026-03-26 17:22
logging_helper.py
916
B
-rw-r--r--
2026-03-26 17:22
numbers.py
1.5
KB
-rw-r--r--
2026-03-26 17:22
os_helper.py
24.51
KB
-rw-r--r--
2026-03-26 17:22
pty_helper.py
3.22
KB
-rw-r--r--
2026-03-26 17:22
refleak_helper.py
165
B
-rw-r--r--
2026-03-26 17:22
script_helper.py
12.29
KB
-rw-r--r--
2026-03-26 17:22
smtpd.py
30.03
KB
-rwxr-xr-x
2026-03-26 17:22
socket_helper.py
13.46
KB
-rw-r--r--
2026-03-26 17:22
testcase.py
4.64
KB
-rw-r--r--
2026-03-26 17:22
threading_helper.py
7.86
KB
-rw-r--r--
2026-03-26 17:22
venv.py
2.3
KB
-rw-r--r--
2026-03-26 17:22
warnings_helper.py
6.69
KB
-rw-r--r--
2026-03-26 17:22
Save
Rename
from math import copysign, isnan class ExtraAssertions: def assertIsSubclass(self, cls, superclass, msg=None): if issubclass(cls, superclass): return standardMsg = f'{cls!r} is not a subclass of {superclass!r}' self.fail(self._formatMessage(msg, standardMsg)) def assertNotIsSubclass(self, cls, superclass, msg=None): if not issubclass(cls, superclass): return standardMsg = f'{cls!r} is a subclass of {superclass!r}' self.fail(self._formatMessage(msg, standardMsg)) def assertHasAttr(self, obj, name, msg=None): if not hasattr(obj, name): if isinstance(obj, types.ModuleType): standardMsg = f'module {obj.__name__!r} has no attribute {name!r}' elif isinstance(obj, type): standardMsg = f'type object {obj.__name__!r} has no attribute {name!r}' else: standardMsg = f'{type(obj).__name__!r} object has no attribute {name!r}' self.fail(self._formatMessage(msg, standardMsg)) def assertNotHasAttr(self, obj, name, msg=None): if hasattr(obj, name): if isinstance(obj, types.ModuleType): standardMsg = f'module {obj.__name__!r} has unexpected attribute {name!r}' elif isinstance(obj, type): standardMsg = f'type object {obj.__name__!r} has unexpected attribute {name!r}' else: standardMsg = f'{type(obj).__name__!r} object has unexpected attribute {name!r}' self.fail(self._formatMessage(msg, standardMsg)) def assertStartsWith(self, s, prefix, msg=None): if s.startswith(prefix): return standardMsg = f"{s!r} doesn't start with {prefix!r}" self.fail(self._formatMessage(msg, standardMsg)) def assertNotStartsWith(self, s, prefix, msg=None): if not s.startswith(prefix): return self.fail(self._formatMessage(msg, f"{s!r} starts with {prefix!r}")) def assertEndsWith(self, s, suffix, msg=None): if s.endswith(suffix): return standardMsg = f"{s!r} doesn't end with {suffix!r}" self.fail(self._formatMessage(msg, standardMsg)) def assertNotEndsWith(self, s, suffix, msg=None): if not s.endswith(suffix): return self.fail(self._formatMessage(msg, f"{s!r} ends with {suffix!r}")) class ExceptionIsLikeMixin: def assertExceptionIsLike(self, exc, template): """ Passes when the provided `exc` matches the structure of `template`. Individual exceptions don't have to be the same objects or even pass an equality test: they only need to be the same type and contain equal `exc_obj.args`. """ if exc is None and template is None: return if template is None: self.fail(f"unexpected exception: {exc}") if exc is None: self.fail(f"expected an exception like {template!r}, got None") if not isinstance(exc, ExceptionGroup): self.assertEqual(exc.__class__, template.__class__) self.assertEqual(exc.args[0], template.args[0]) else: self.assertEqual(exc.message, template.message) self.assertEqual(len(exc.exceptions), len(template.exceptions)) for e, t in zip(exc.exceptions, template.exceptions): self.assertExceptionIsLike(e, t) class FloatsAreIdenticalMixin: def assertFloatsAreIdentical(self, x, y): """Fail unless floats x and y are identical, in the sense that: (1) both x and y are nans, or (2) both x and y are infinities, with the same sign, or (3) both x and y are zeros, with the same sign, or (4) x and y are both finite and nonzero, and x == y """ msg = 'floats {!r} and {!r} are not identical' if isnan(x) or isnan(y): if isnan(x) and isnan(y): return elif x == y: if x != 0.0: return # both zero; check that signs match elif copysign(1.0, x) == copysign(1.0, y): return else: msg += ': zeros have different signs' self.fail(msg.format(x, y)) class ComplexesAreIdenticalMixin(FloatsAreIdenticalMixin): def assertComplexesAreIdentical(self, x, y): """Fail unless complex numbers x and y have equal values and signs. In particular, if x and y both have real (or imaginary) part zero, but the zeros have different signs, this test will fail. """ self.assertFloatsAreIdentical(x.real, y.real) self.assertFloatsAreIdentical(x.imag, y.imag)