@patch('ansible_collections.netapp.ontap.plugins.module_utils.netapp.OntapRestAPI.send_request')
def test_negative_verb(self, mock_request):
    data = dict(self.mock_args())
    data['verb'] = 'GET'
    set_module_args(data)
    mock_request.side_effect = [SRR['is_rest'], SRR['end_of_sequence']]
    uut = self.get_cli_mock_object()
    with pytest.raises(AnsibleFailJson) as exc:
        uut.verb = 'INVALID'
        uut.run_command()
    msg = 'Error: unexpected verb INVALID'
    assert (msg in exc.value.args[0]['msg'])
@patch('ansible_collections.netapp.ontap.plugins.module_utils.netapp.OntapRestAPI.send_request')
def test_negative_verb(self, mock_request):
    data = dict(self.mock_args())
    data['verb'] = 'GET'
    set_module_args(data)
    mock_request.side_effect = [SRR['is_rest'], SRR['end_of_sequence']]
    uut = self.get_cli_mock_object()
    with pytest.raises(AnsibleFailJson) as exc:
        uut.verb = 'INVALID'
        uut.run_command()
    msg = 'Error: unexpected verb INVALID'
    assert (msg in exc.value.args[0]['msg'])