def test_hash_for_msg(self): """Test the hash_for_msg() function""" self.assertEqual('900150983cd24fb0d6963f7d28e17f72', rhash.hash_for_msg('abc', rhash.MD5))
def test_hash_for_msg(self): self.assertEqual('900150983cd24fb0d6963f7d28e17f72', rhash.hash_for_msg('abc', rhash.MD5))
def test_hash_for_msg(self): """Test the hash_for_msg() function""" self.assertEqual( '900150983cd24fb0d6963f7d28e17f72', rhash.hash_for_msg('abc', rhash.MD5))
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))