OXIESEC PANEL
- Current Dir:
/
/
snap
/
core24
/
888
/
usr
/
lib
/
python3.12
/
test
/
support
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📄
__init__.py
78.13 KB
02/04/2025 02:48:35 PM
rw-r--r--
📁
__pycache__
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📁
_hypothesis_stubs
-
03/18/2025 08:12:15 AM
rwxr-xr-x
📄
ast_helper.py
1.79 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
asynchat.py
11.33 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
asyncore.py
19.9 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
bytecode_helper.py
4.88 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
hashlib_helper.py
1.86 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
hypothesis_helper.py
1.35 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
import_helper.py
10.48 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
interpreters.py
5.67 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
logging_helper.py
916 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
os_helper.py
23.72 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pty_helper.py
2.98 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
script_helper.py
11.45 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
smtpd.py
30.01 KB
02/04/2025 02:48:35 PM
rwxr-xr-x
📄
socket_helper.py
13.47 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
testcase.py
1.02 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
threading_helper.py
7.86 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
warnings_helper.py
6.69 KB
02/04/2025 02:48:35 PM
rw-r--r--
Editing: testcase.py
Close
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)