@skipIf(True, 'Need to figure out how to mock calls to the O.N. API first.')
    @patch('image.clone', MagicMock(return_value=[True, 11, 0]))
    def test_image_clone_success(self):
        name = 'test-image'
        expected = {
            'action': 'image.clone',
            'cloned': 'True',
            'cloned_image_id': '11',
            'cloned_image_name': name,
            'error_code': '0',
        }
        ret = opennebula.image_clone('function', kwargs={'name': name, 'image_id': 1})
        self.assertEqual(expected, ret)
Tests that image_clone returns successfully
dataset/ETHPy150Open saltstack/salt/tests/unit/cloud/clouds/opennebula_test.py/OpenNebulaTestCase.test_image_clone_success