2020-01-15 01:01:20 +01:00
|
|
|
from slpkg.md5sum import md5
|
|
|
|
|
|
|
|
|
2020-01-18 14:05:36 +01:00
|
|
|
def test_md5_superuser():
|
2020-02-17 17:14:24 +01:00
|
|
|
"""Testing checksum for superuser.py file
|
|
|
|
"""
|
2020-01-15 01:01:20 +01:00
|
|
|
result = md5('slpkg/superuser.py')
|
2020-02-15 23:39:27 +01:00
|
|
|
assert result == "c6a3576c247bda199c75b43540bfc3d7"
|
2020-01-18 14:05:36 +01:00
|
|
|
|
2020-01-18 15:08:01 +01:00
|
|
|
|
2020-01-18 14:05:36 +01:00
|
|
|
def test_md5_security():
|
2020-02-17 17:14:24 +01:00
|
|
|
"""Testing checksum for security.py file
|
|
|
|
"""
|
2020-01-18 14:05:36 +01:00
|
|
|
result = md5('slpkg/security.py')
|
2020-02-17 16:28:07 +01:00
|
|
|
assert result == "eb8dbea4dec6d72353d30475670389f0"
|