File: test_md5.py

package info (click to toggle)
python-easydev 0.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 504 kB
  • sloc: python: 2,130; javascript: 49; makefile: 13
file content (10 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
from easydev.md5tools import md5
from easydev import TempFile


def test_md5():
    with TempFile() as temp:
        fh = open(temp.name, "w")
        fh.write("youpi")
        fh.close()
        assert md5(fh.name) == "538e957924f0770b415f473ce900d686"