#NEWLINE# def test_echo_method_human_pagination( self ) : #NEWLINE# #INDENT# 'Establish that pagination works in human formatting, and it\n        prints the way we expect.\n        ' #NEWLINE# func = self . command . _echo_method ( ( lambda : { #NEWLINE# #INDENT# 'results' : [ { #NEWLINE# #INDENT# 'id' : 1 , #NEWLINE# 'name' : 'Durham, NC' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : 2 , #NEWLINE# 'name' : True , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'next' : 3 , #NEWLINE# 'count' : 10 , #NEWLINE# 'previous' : 1 , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# with mock . patch . object ( click , 'secho' ) as secho : #NEWLINE# #INDENT# with settings . runtime_values ( format = 'human' ) : #NEWLINE# #INDENT# func ( ) #NEWLINE# #UNINDENT# output = secho . mock_calls [ ( - 1 ) ] [ 1 ] [ 0 ] #NEWLINE# #UNINDENT# self . assertIn ( '(Page 2 of 5.)' , self )