@patch('ansible_collections.netapp.ontap.plugins.module_utils.netapp.OntapRestAPI.send_request')
def test_rest_cli(self, mock_request):
    data = dict(self.mock_args())
    set_module_args(data)
    mock_request.side_effect = [SRR['is_rest'], SRR['empty_good'], SRR['end_of_sequence']]
    with pytest.raises(AnsibleExitJson) as exc:
        self.get_cli_mock_object().apply()
    assert exc.value.args[0]['changed']
@patch('ansible_collections.netapp.ontap.plugins.module_utils.netapp.OntapRestAPI.send_request')
def test_rest_cli(self, mock_request):
    data = dict(self.mock_args())
    set_module_args(data)
    mock_request.side_effect = [SRR['is_rest'], SRR['empty_good'], SRR['end_of_sequence']]
    with pytest.raises(AnsibleExitJson) as exc:
        self.get_cli_mock_object().apply()
    assert exc.value.args[0]['changed']