File: test_md5.py

package info (click to toggle)
python-easydev 0.13.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: python: 1,904; makefile: 116; javascript: 49
file content (10 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from easydev import TempFile
from easydev.md5tools import md5


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