#NEWLINE# def test_basic_search( index ) : #NEWLINE# #INDENT# resp = index . search ( 'hello' ) #NEWLINE# assert ( len ( resp . results ) == 1 ) #NEWLINE# result = resp . results [ 0 ] #NEWLINE# assert ( result . doc_id == 'test_id' ) #NEWLINE# assert ( result . language == 'en' ) #NEWLINE# assert ( result . fields [ 0 ] . value == 'hello world' ) #NEWLINE# assert ( result . fields [ 0 ] . name == 'body' )