#NEWLINE# def test_focus_on_function_with_tuple( self ) : #NEWLINE# #INDENT# recorder = TextStreamRecorder ( text_stream = helper . stream , filter_ = ( lambda record : ( self . filename in record ) ) ) #NEWLINE# def monitor_factory( functions = [ ] ) : #NEWLINE# #INDENT# return FocusedLineMonitor ( functions = functions , recorder = recorder , record_type = tuple ) #NEWLINE# #UNINDENT# helper = FocusedMonitoringHelper ( monitor_factory ) #NEWLINE# result = helper . run_on_function ( ) #NEWLINE# self . assertEqual ( result , 3 ) #NEWLINE# template = [ '0 gcd 34             while x > 0: {0}' , '1 gcd 35                 x, y = internal(x, y) {0}' , '2 gcd 34             while x > 0: {0}' , '3 gcd 35                 x, y = internal(x, y) {0}' , '4 gcd 34             while x > 0: {0}' , '5 gcd 36             return y {0}' ] #NEWLINE# self . check_records ( template , self . stream )