#NEWLINE# def test_hash_Set( self ) : #NEWLINE# #INDENT# class OneTwoThreeSet ( Set ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . contents = [ 1 , 2 , 3 ] #NEWLINE# #UNINDENT# def __contains__( self , x ) : #NEWLINE# #INDENT# return ( x in self . contents ) #NEWLINE# #UNINDENT# def __len__( self ) : #NEWLINE# #INDENT# return len ( self . contents ) #NEWLINE# #UNINDENT# def __iter__( self ) : #NEWLINE# #INDENT# return iter ( self . contents ) #NEWLINE# #UNINDENT# def __hash__( self ) : #NEWLINE# #INDENT# return self . _hash ( ) #NEWLINE# #UNINDENT# #UNINDENT# ( a , b ) = ( OneTwoThreeSet ( ) , OneTwoThreeSet ( ) ) #NEWLINE# self . assertTrue ( ( hash ( self ) == hash ( b ) ) )