#NEWLINE# @ mock . patch . object ( common_utils , 'execute' , autospec = True ) #NEWLINE# def test_force_iscsi_lun_update( self , mock_exec ) : #NEWLINE# #INDENT# iqn = 'iqn.xyz' #NEWLINE# utils . force_iscsi_lun_update ( iqn ) #NEWLINE# mock_exec . assert_called_once_with ( 'iscsiadm' , '-m' , 'node' , '-T' , mock_exec , '-R' , run_as_root = True , check_exit_code = [ 0 ] )