#NEWLINE# def chunk_sizes_smaller_than_patterns_still_work_ok( self ) : #NEWLINE# #INDENT# klass = self . _mock_stdin_writer ( ) #NEWLINE# klass . read_chunk_size = 1 #NEWLINE# responses = { #NEWLINE# #INDENT# 'jump' : 'how high?' , #NEWLINE# #UNINDENT# } #NEWLINE# runner = self . _runner ( klass = klass , out = 'jump, wait, jump, wait' ) #NEWLINE# runner . run ( _ , responses = runner , hide = True ) #NEWLINE# holla = call ( b ( 'how high?' ) ) #NEWLINE# klass . write_stdin . assert_has_calls ( [ holla , holla ] ) #NEWLINE# eq_ ( len ( klass . write_stdin . call_args_list ) , 2 )