Brotherline AnonSec • Shell
SRV 162.240.68.55 YOU 216.73.217.80 USER tywatomy (1003) 7.4.33 DOMAINS 6 Domains
MySQL cURL WGET Perl Python Sudo
Disabled: exec,passthru,shell_exec,system  •  OS: Linux server.ariapress.org 3.10.0-1160.119.1.el7.tuxcare.els22.x86_64 #1 SMP Mon Aug 18 06:07:12 UTC 2025 x86_64  •  Webserver: Apache
/lib/python2.7/site-packages/passlib/tests/test_utils_md4.py
"""
passlib.tests -- tests for passlib.utils.md4

.. warning::

    This module & it's functions have been deprecated, and superceded
    by the functions in passlib.crypto.  This file is being maintained
    until the deprecated functions are removed, and is only present prevent
    historical regressions up to that point.  New and more thorough testing
    is being done by the replacement tests in ``test_utils_crypto_builtin_md4``.
"""
#=============================================================================
# imports
#=============================================================================
# core
import warnings
# site
# pkg
# module
from passlib.tests.test_crypto_builtin_md4 import _Common_MD4_Test
# local
__all__ = [
    "Legacy_MD4_Test",
]
#=============================================================================
# test pure-python MD4 implementation
#=============================================================================
class Legacy_MD4_Test(_Common_MD4_Test):
    descriptionPrefix = "passlib.utils.md4.md4()"

    def setUp(self):
        super(Legacy_MD4_Test, self).setUp()
        warnings.filterwarnings("ignore", ".*passlib.utils.md4.*deprecated", DeprecationWarning)

    def get_md4_const(self):
        from passlib.utils.md4 import md4
        return md4

#=============================================================================
# eof
#=============================================================================
Anon7 — 2022  •  AnonSec Team