def get_lun_mock_object(self, kind=None, parm1=None):
     """
     Helper method to return an na_ontap_lun object
     :param kind: passes this param to MockONTAPConnection()
     :return: na_ontap_interface object
     """
     lun_obj = my_module()
     lun_obj.autosupport_log = Mock(return_value=None)
     lun_obj.server = MockONTAPConnection(kind=kind, parm1=parm1)
     return lun_obj
 def test_module_fail_when_required_args_missing(self):
     ''' required arguments are reported as errors '''
     with pytest.raises(AnsibleFailJson) as exc:
         set_module_args({})
         my_module()
     print('Info: %s' % exc.value.args[0]['msg'])