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, "0f6bb6ac5282498db65a791e28f207fe") if __name__ == "__main__": unittest.main()