test_utils_md4.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. """
  2. passlib.tests -- tests for passlib.utils.md4
  3. .. warning::
  4. This module & it's functions have been deprecated, and superceded
  5. by the functions in passlib.crypto. This file is being maintained
  6. until the deprecated functions are removed, and is only present prevent
  7. historical regressions up to that point. New and more thorough testing
  8. is being done by the replacement tests in ``test_utils_crypto_builtin_md4``.
  9. """
  10. #=============================================================================
  11. # imports
  12. #=============================================================================
  13. # core
  14. import warnings
  15. # site
  16. # pkg
  17. # module
  18. from passlib.tests.test_crypto_builtin_md4 import _Common_MD4_Test
  19. # local
  20. __all__ = [
  21. "Legacy_MD4_Test",
  22. ]
  23. #=============================================================================
  24. # test pure-python MD4 implementation
  25. #=============================================================================
  26. class Legacy_MD4_Test(_Common_MD4_Test):
  27. descriptionPrefix = "passlib.utils.md4.md4()"
  28. def setUp(self):
  29. super(Legacy_MD4_Test, self).setUp()
  30. warnings.filterwarnings("ignore", ".*passlib.utils.md4.*deprecated", DeprecationWarning)
  31. def get_md4_const(self):
  32. from passlib.utils.md4 import md4
  33. return md4
  34. #=============================================================================
  35. # eof
  36. #=============================================================================