def test_sha1_checksum_base64(self):
     test_file = self.get_test_loc('hash/dir1/a.png')
     assert b64sha1(test_file) == u'NKxUZdSKmwT8J18JvCIwZg349Pc='
示例#2
0
 def test_hash_9(self):
     test_file = self.get_test_loc('hash/dir2/a.txt')
     assert b64sha1(test_file) == 'PKaejWwjSkadFqwopKZYySJnxCM='
示例#3
0
 def test_hash_12(self):
     test_file = self.get_test_loc('hash/dir2/dos.txt')
     assert b64sha1(test_file) == 'pxcY-xmGMK6LoykmAV2FVaA8sGw='
示例#4
0
 def test_hash_3(self):
     test_file = self.get_test_loc('hash/dir1/a.png')
     assert b64sha1(test_file) == 'NKxUZdSKmwT8J18JvCIwZg349Pc='