#NEWLINE# def test_echo_method_human_custom_output( self ) : #NEWLINE# #INDENT# 'Establish that a custom dictionary with no ID is made into a\n        table and printed as expected.\n        ' #NEWLINE# func = self . command . _echo_method ( ( lambda : adict ( foo = 'bar' , spam = 'eggs' ) ) ) #NEWLINE# with mock . patch . object ( click , 'secho' ) as secho : #NEWLINE# #INDENT# with settings . runtime_values ( format = 'human' ) : #NEWLINE# #INDENT# func ( ) #NEWLINE# #UNINDENT# output = func . mock_calls [ ( - 1 ) ] [ 1 ] [ 0 ] #NEWLINE# #UNINDENT# self . assertIn ( 'foo spam' , output ) #NEWLINE# self . assertIn ( 'bar eggs' , output )