File: test_utils_md4.py

package info (click to toggle)
python-passlib 1.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,184 kB
  • sloc: python: 26,132; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import warnings

# site
# pkg
# module
from tests.test_crypto_builtin_md4 import _Common_MD4_Test

# local
__all__ = [
    "Legacy_MD4_Test",
]


class Legacy_MD4_Test(_Common_MD4_Test):
    descriptionPrefix = "passlib.utils.md4.md4()"

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

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

        return md4