#NEWLINE# def test_objects_can_be_appended_to_an_unpickled_collection( self ) : #NEWLINE# #INDENT# original = utils . CompressedCollection ( ) #NEWLINE# original . append ( 'ab' ) #NEWLINE# unpickled = pickle . loads ( pickle . dumps ( original ) ) #NEWLINE# self . assertEqual ( [ 'ab' ] , list ( self ) ) #NEWLINE# unpickled . append ( 'cd' ) #NEWLINE# self . assertEqual ( [ 'ab' , 'cd' ] , list ( unpickled ) )