@patch('salt.cloud.clouds.opennebula.avail_images',
           MagicMock(return_value={'my-vm': {'name': 'my-vm', 'id': 0}}))
    @patch('salt.config.get_cloud_config_value', MagicMock(return_value='my-vm'))
    def test_get_image_success(self):
        self.assertEqual(opennebula.get_image('my-vm'), 0)
[<channel>]
dataset/ETHPy150Open saltstack/salt/tests/unit/cloud/clouds/opennebula_test.py/OpenNebulaTestCase.test_get_image_success--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/plugins/Topic/plugin.py/Topic.restore