def setUp(self):
    self.mock_module_helper = patch.multiple(basic.AnsibleModule, exit_json=exit_json, fail_json=fail_json)
    self.mock_module_helper.start()
    self.addCleanup(self.mock_module_helper.stop)
def setUp(self):
    self.mock_module_helper = patch.multiple(basic.AnsibleModule, exit_json=exit_json, fail_json=fail_json)
    self.mock_module_helper.start()
    self.addCleanup(self.mock_module_helper.stop)