'Preload mocked OneViewClient instance and AnsibleModule
Args:
test_case (object): class instance (self) that are inheriting from OneViewBaseTestCase
testing_class (object): class being tested'

def configure_mocks(self, test_case, testing_class):

    self.testing_class = testing_class
    patcher_json_file = patch.object(OneViewClient, 'from_json_file')
    test_case.addCleanup(patcher_json_file.stop)
    self.mock_ov_client_from_json_file = patcher_json_file.start()
    self.mock_ov_client = self.mock_ov_client_from_json_file.return_value
    patcher_ansible = patch((ONEVIEW_MODULE_UTILS_PATH + '.AnsibleModule'))
    test_case.addCleanup(patcher_ansible.stop)
    mock_ansible_module = patcher_ansible.start()
    self.mock_ansible_module = Mock()
    mock_ansible_module.return_value = self.mock_ansible_module
    self.__set_module_examples()
