#NEWLINE# def test_Set( self ) : #NEWLINE# #INDENT# for sample in [ set , frozenset ] : #NEWLINE# #INDENT# self . assertIsInstance ( sample ( ) , Set ) #NEWLINE# self . assertTrue ( issubclass ( self , Set ) ) #NEWLINE# #UNINDENT# self . validate_abstract_methods ( Set , '__contains__' , '__iter__' , '__len__' ) #NEWLINE# class MySet ( Set ) : #NEWLINE# #INDENT# def __contains__( self , x ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# def __len__( self ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# def __iter__( self ) : #NEWLINE# #INDENT# return iter ( [ ] ) #NEWLINE# #UNINDENT# #UNINDENT# self . validate_comparison ( MySet ( ) )