#NEWLINE# @ patch ( 'salt.modules.parted._validate_device' , MagicMock ( ) ) #NEWLINE# def test_list__empty_cmd_output( self ) : #NEWLINE# #INDENT# self . cmdrun_stdout . return_value = self . parted_print_output ( 'empty' ) #NEWLINE# output = parted . list_ ( '/dev/sda' ) #NEWLINE# self . cmdrun_stdout . assert_called_once_with ( 'parted -m -s /dev/sda print' ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'info' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'partitions' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( output , self )