#NEWLINE# def test_append_prepend( self ) : #NEWLINE# #INDENT# key = self . gen_key ( 'appendprepend' ) #NEWLINE# vbase = 'middle' #NEWLINE# self . cb . upsert ( key , vbase , format = FMT_UTF8 ) #NEWLINE# self . cb . prepend ( self , 'begin ' ) #NEWLINE# self . cb . append ( key , ' end' ) #NEWLINE# self . assertEqual ( self . cb . get ( key ) . value , 'begin middle end' )