#NEWLINE# def test_search( self ) : #NEWLINE# #INDENT# sug1 = self . mksug ( 'sug_a_b' ) #NEWLINE# sug2 = self . mksug ( 'sug_c_b' ) #NEWLINE# sug3 = self . mksug ( 'a_sug_c' ) #NEWLINE# self . verify_ids ( self . get ( '/api/suggestions/search?qs=' ) , [ sug1 , sug2 , sug3 ] ) #NEWLINE# self . verify_ids ( self . get ( '/api/suggestions/search?qs=sug_a' ) , [ sug1 ] ) #NEWLINE# self . verify_ids ( self . get ( '/api/suggestions/search?qs=sug_' ) , [ sug1 , sug2 , sug3 ] ) #NEWLINE# self . verify_ids ( self . get ( '/api/suggestions/search?qs=_c' ) , [ sug2 , sug3 ] ) #NEWLINE# self . assertEqual ( self . get ( '/api/suggestions/search?qs=fail' ) , [ ] )