#NEWLINE# @ mock . patch ( 'ironicclient.common.cliutils.print_dict' ) #NEWLINE# def test_do_driver_properties_with_wrap( self , mock_print_dict ) : #NEWLINE# #INDENT# client_mock = self . client_mock #NEWLINE# client_mock . driver . properties . return_value = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# 'baz' : 'qux' , #NEWLINE# #UNINDENT# } #NEWLINE# args = mock . MagicMock ( ) #NEWLINE# args . driver_name = 'driver_name' #NEWLINE# args . wrap = 80 #NEWLINE# args . json = False #NEWLINE# d_shell . do_driver_properties ( client_mock , args ) #NEWLINE# mock_print_dict . assert_called_with ( { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# 'baz' : 'qux' , #NEWLINE# #UNINDENT# } , dict_value = 'Description' , json_flag = False , wrap = 80 )