@patch('salt.cloud.clouds.opennebula.avail_locations', MagicMock(return_value={}))
    @patch('salt.config.get_cloud_config_value', MagicMock(return_value='foo'))
    def test_get_location_not_found(self):
        self.assertRaises(SaltCloudNotFound, opennebula.get_location, 'my-vm')
Tests that a SaltCloudNotFound is raised when the location doesn't exist.
dataset/ETHPy150Open saltstack/salt/tests/unit/cloud/clouds/opennebula_test.py/OpenNebulaTestCase.test_get_location_not_found