#NEWLINE# def test_updating( self ) : #NEWLINE# #INDENT# self . autocomplete . store ( 'id1' , 'title baze' , 'd1' , 't1' ) #NEWLINE# self . autocomplete . store ( 'id2' , 'title nugget' , 'd2' , 't2' ) #NEWLINE# self . autocomplete . store ( 'id3' , 'title foo' , 'd3' , 't3' ) #NEWLINE# results = self . autocomplete . search ( 'tit' ) #NEWLINE# self . assertSearch ( results , [ 'd1' , 'd3' , 'd2' ] ) #NEWLINE# self . autocomplete . store ( 'id1' , 'title foo' , 'D1' , 't1' ) #NEWLINE# results = self . autocomplete . search ( 'tit' ) #NEWLINE# self . assertSearch ( results , [ 'D1' , 'd3' , 'd2' ] ) #NEWLINE# self . autocomplete . store ( 'id1' , 'Herple' , 'done' , 't1' ) #NEWLINE# results = self . autocomplete . search ( 'tit' ) #NEWLINE# self . assertSearch ( results , [ 'd3' , 'd2' ] ) #NEWLINE# results = self . autocomplete . search ( 'herp' ) #NEWLINE# self . assertSearch ( results , [ 'done' ] ) #NEWLINE# self . autocomplete . store ( 'id1' , 'title baze' , 'Done' , 't1' ) #NEWLINE# results = self . autocomplete . search ( 'tit' ) #NEWLINE# self . assertSearch ( results , [ 'Done' , 'd3' , 'd2' ] ) #NEWLINE# results = self . autocomplete . search ( 'herp' ) #NEWLINE# self . assertSearch ( results , [ ] )