#NEWLINE# def test_set_and_get( self ) : #NEWLINE# #INDENT# thumbnail = Thumbnail ( [ 'n' , 'ame' ] ) #NEWLINE# self . backend . set ( thumbnail ) #NEWLINE# cached_thumbnail = self . backend . get ( thumbnail . name ) #NEWLINE# self . assertIsInstance ( cached_thumbnail , Thumbnail ) #NEWLINE# self . assertEqual ( self . name , thumbnail . name )