#NEWLINE# def test_shadowed_args_are_replaced_when_pagination_off( self ) : #NEWLINE# #INDENT# input_tokens = [ 'foo' , 'bar' ] #NEWLINE# self . parsed_globals . paginate = True #NEWLINE# self . parsed_args . foo = None #NEWLINE# self . parsed_args . bar = 10 #NEWLINE# shadowed_args = { #NEWLINE# #INDENT# 'foo' : mock . sentinel . ORIGINAL_ARG , #NEWLINE# #UNINDENT# } #NEWLINE# arg_table = { #NEWLINE# #INDENT# 'foo' : mock . sentinel . PAGINATION_ARG , #NEWLINE# #UNINDENT# } #NEWLINE# paginate . check_should_enable_pagination ( input_tokens , shadowed_args , arg_table , self . parsed_args , self . parsed_globals ) #NEWLINE# self . assertFalse ( self . parsed_globals . paginate ) #NEWLINE# self . assertEqual ( arg_table [ 'foo' ] , mock . sentinel . ORIGINAL_ARG )