#NEWLINE# def can_be_overridden( self ) : #NEWLINE# #INDENT# klass = self . _mock_stdin_writer ( ) #NEWLINE# in_stream = StringIO ( 'Hey, listen!' ) #NEWLINE# self . _runner ( klass = klass ) . run ( _ , in_stream = in_stream , out_stream = StringIO ( ) ) #NEWLINE# calls = list ( map ( ( lambda x : call ( b ( x ) ) ) , 'Hey, listen!' ) ) #NEWLINE# klass . write_stdin . assert_has_calls ( calls , any_order = False )