def test_bytes_hashing():
 import _sha, _sha256, _sha512, _md5
 for hashLib in (_sha.new, _sha256.sha256, _sha512.sha512, _sha512.sha384, _md5.new):
  x = hashLib('abc')
  x.update('abc')
  temp = hashLib(bytearray('abc'))
  x.update(bytearray('abc'))

def test_bytes_hashing ( ) : import _sha , _sha256 , _sha512 , _md5 for hashLib in ( _sha . new , _sha256 . sha256 , _sha512 . sha512 , _sha512 . sha384 , _md5 . new ) : x = hashLib ( 'abc' ) x . update ( 'abc' ) temp = hashLib ( bytearray ( 'abc' ) ) x . update ( bytearray ( 'abc' ) )
test interaction of bytes w/ hashing modules .