Updated pytest

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-01-15 00:52:04 +01:00
parent 56ad4da268
commit d592956767

View file

@ -33,11 +33,3 @@ def md5(source):
with open(source, "rb") as file_to_check:
data = file_to_check.read()
return hashlib.md5(data).hexdigest()
def test_md5(source="superuser.py"):
"""Testing hashing with pytest"""
source = source.replace("%2B", "+")
with open(source, "rb") as file_to_check:
data = file_to_check.read()
assert hashlib.md5(data).hexdigest() == "e6cebdf37fbc1b8e9d3c5e3e53b300c1"