#NEWLINE# def test_MutableSequence( self ) : #NEWLINE# #INDENT# for sample in [ tuple , str ] : #NEWLINE# #INDENT# self . assertNotIsInstance ( sample ( ) , MutableSequence ) #NEWLINE# self . assertFalse ( issubclass ( sample , MutableSequence ) ) #NEWLINE# #UNINDENT# for sample in [ list ] : #NEWLINE# #INDENT# self . assertIsInstance ( sample ( ) , MutableSequence ) #NEWLINE# self . assertTrue ( issubclass ( sample , MutableSequence ) ) #NEWLINE# #UNINDENT# self . assertFalse ( issubclass ( basestring , MutableSequence ) ) #NEWLINE# self . validate_abstract_methods ( MutableSequence , '__contains__' , '__iter__' , '__len__' , '__getitem__' , '__setitem__' , '__delitem__' , 'insert' )