示例#1
0
 def test_hash_for_msg(self):
     """Test the hash_for_msg() function"""
     self.assertEqual('900150983cd24fb0d6963f7d28e17f72',
                      rhash.hash_for_msg('abc', rhash.MD5))
示例#2
0
 def test_hash_for_msg(self):
     self.assertEqual('900150983cd24fb0d6963f7d28e17f72',
                      rhash.hash_for_msg('abc', rhash.MD5))
示例#3
0
文件: test_rhash.py 项目: rhash/RHash
 def test_hash_for_msg(self):
     """Test the hash_for_msg() function"""
     self.assertEqual(
         '900150983cd24fb0d6963f7d28e17f72',
         rhash.hash_for_msg('abc', rhash.MD5))
示例#4
0
 def test_hash_for_msg(self):
     self.assertEqual('900150983cd24fb0d6963f7d28e17f72', rhash.hash_for_msg('abc', rhash.MD5))
示例#5
0
    def test_shift_operator(self):
	r = rhash.RHash(rhash.MD5)
	r << 'a' << 'bc'
	self.assertEqual('900150983cd24fb0d6963f7d28e17f72', str(r.finish())) # MD5( 'abc' )
	self.assertEqual('900150983cd24fb0d6963f7d28e17f72', rhash.hash_for_msg('abc', rhash.MD5))