#NEWLINE# def test_Container( self ) : #NEWLINE# #INDENT# non_samples = [ None , 42 , 3.14 , 1j , ( lambda : ( yield ) ) ( ) , ( x for x in [ ] ) ] #NEWLINE# for x in non_samples : #NEWLINE# #INDENT# self . assertNotIsInstance ( x , Container ) #NEWLINE# self . assertFalse ( issubclass ( type ( x ) , Container ) , repr ( type ( x ) ) ) #NEWLINE# #UNINDENT# samples = [ str ( ) , tuple ( ) , list ( ) , set ( ) , frozenset ( ) , dict ( ) , dict ( ) . keys ( ) , dict ( ) . items ( ) ] #NEWLINE# for x in samples : #NEWLINE# #INDENT# self . assertIsInstance ( x , Container ) #NEWLINE# self . assertTrue ( issubclass ( type ( x ) , Container ) , repr ( type ( x ) ) ) #NEWLINE# #UNINDENT# self . validate_abstract_methods ( Container , '__contains__' ) #NEWLINE# self . validate_isinstance ( Container , '__contains__' )