slpkg/tests/test_md5sum.py
Dimitris Zlatanidis ce04039ea1 Updated md5sum
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
2022-04-24 22:01:50 +03:00

21 lines
540 B
Python

import unittest
from slpkg.md5sum import md5
class TestMd5(unittest.TestCase):
def test_md5_superuser(self):
"""Testing checksum for superuser.py file
"""
result = md5('test_file_size.py')
self.assertEqual(result, "e3e7b72be80efc922b0e1f1cd409a417")
def test_md5_security(self):
"""Testing checksum for security.py file
"""
result = md5('test_units.py')
self.assertEqual(result, "58a694171449e923414e3e3339a0097e")
if __name__ == "__main__":
unittest.main()