summaryrefslogtreecommitdiff
path: root/nova/tests/unit/virt/libvirt/test_guest.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/unit/virt/libvirt/test_guest.py')
-rw-r--r--nova/tests/unit/virt/libvirt/test_guest.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/nova/tests/unit/virt/libvirt/test_guest.py b/nova/tests/unit/virt/libvirt/test_guest.py
index 7e81e47b16..745def98f0 100644
--- a/nova/tests/unit/virt/libvirt/test_guest.py
+++ b/nova/tests/unit/virt/libvirt/test_guest.py
@@ -20,7 +20,6 @@ import mock
from oslo_service import fixture as service_fixture
from oslo_utils import encodeutils
import six
-import testtools
from nova import context
from nova import exception
@@ -692,23 +691,6 @@ class GuestTestCase(test.NoDBTestCase):
'destination_xml': '</xml>',
'bandwidth': 2})
- @testtools.skipIf(not six.PY2, 'libvirt python3 bindings accept unicode')
- def test_migrate_v3_unicode(self):
- dest_xml_template = "<domain type='qemu'><name>%s</name></domain>"
- name = u'\u00CD\u00F1st\u00E1\u00F1c\u00E9'
- dest_xml = dest_xml_template % name
- expect_dest_xml = dest_xml_template % encodeutils.to_utf8(name)
- self.guest.migrate('an-uri', flags=1, migrate_uri='dest-uri',
- migrate_disks=[u"disk1", u"disk2"],
- destination_xml=dest_xml,
- bandwidth=2)
- self.domain.migrateToURI3.assert_called_once_with(
- 'an-uri', flags=1, params={'migrate_uri': 'dest-uri',
- 'migrate_disks': ['disk1',
- 'disk2'],
- 'destination_xml': expect_dest_xml,
- 'bandwidth': 2})
-
def test_abort_job(self):
self.guest.abort_job()
self.domain.abortJob.assert_called_once_with()