#NEWLINE# def test_get_statements_with_known_responses( self ) : #NEWLINE# #INDENT# statement_list = [ Statement ( 'What... is your quest?' ) , Statement ( 'This is a phone.' ) , Statement ( 'A what?' , in_response_to = [ Response ( 'This is a phone.' ) ] ) , Statement ( 'A phone.' , in_response_to = [ Response ( 'A what?' ) ] ) ] #NEWLINE# responses = get_response_statements ( statement_list ) #NEWLINE# self . assertEqual ( len ( responses ) , 2 ) #NEWLINE# self . assertIn ( 'This is a phone.' , responses ) #NEWLINE# self . assertIn ( 'A what?' , self )