def test_module_fail_when_required_args_missing(self):
    ' required arguments are reported as errors '
    with pytest.raises(AnsibleFailJson) as exc:
        set_module_args({})
        rest_cli_module()
    print(('Info: %s' % exc.value.args[0]['msg']))
required arguments are reported as errors
def test_module_fail_when_required_args_missing(self):
    '  '
    with pytest.raises(AnsibleFailJson) as exc:
        set_module_args({})
        rest_cli_module()
    print(('Info: %s' % exc.value.args[0]['msg']))