Пример #1
0
 def test_check_md5_e(self):
   testmd5 = 'hoge'
   testfile = os.path.join(os.path.dirname(os.path.realpath(__file__)),'testfile')
   actual = util.check_md5(testmd5,testfile)
   util.check_md5(testmd5,testfile)
Пример #2
0
 def test_check_md5(self):
   testmd5 = '1276481102f218c981e0324180bafd9f'
   testfile = os.path.join(os.path.dirname(os.path.realpath(__file__)),'dl_testfile')
   actual = util.check_md5(testmd5,testfile)
   assert actual is True