#NEWLINE# def test_autotype( self ) : #NEWLINE# #INDENT# h = Hash ( ) #NEWLINE# h . simple_hash_value = '0123456789abcdef0123456789abcdef' #NEWLINE# self . assertEqual ( h . type_ , Hash . TYPE_MD5 ) #NEWLINE# h . type_ = Hash . TYPE_OTHER #NEWLINE# self . assertEqual ( h . type_ , Hash . TYPE_OTHER ) #NEWLINE# h . simple_hash_value = '0123456789abcdef0123456789abcdef' #NEWLINE# self . assertEqual ( h . type_ , Hash . TYPE_OTHER ) #NEWLINE# h2 = Hash ( ) #NEWLINE# h2 . type_ = Hash . TYPE_OTHER #NEWLINE# h2 . simple_hash_value = '0123456789abcdef0123456789abcdef' #NEWLINE# self . assertEqual ( h2 . type_ , Hash . TYPE_OTHER )