diff options
| author | Soren Hansen <soren@linux2go.dk> | 2011-01-10 11:32:17 +0100 |
|---|---|---|
| committer | Soren Hansen <soren@linux2go.dk> | 2011-01-10 11:32:17 +0100 |
| commit | 15b81abbd23f033fc9e35a7d49b8f65d2ae76586 (patch) | |
| tree | c47adbf8298e8968cf7f0a5edff823e067f96e59 | |
| parent | 325330840ebe87da8e5943735b8956c8dfc4d112 (diff) | |
| download | nova-15b81abbd23f033fc9e35a7d49b8f65d2ae76586.tar.gz nova-15b81abbd23f033fc9e35a7d49b8f65d2ae76586.tar.xz nova-15b81abbd23f033fc9e35a7d49b8f65d2ae76586.zip | |
Create LibvirtConnection directly, rather than going through libvirt_conn.get_connection. This should remove the dependency on libvirt for tests.
| -rw-r--r-- | nova/tests/test_virt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py index 2f418bd5d..59053f4d0 100644 --- a/nova/tests/test_virt.py +++ b/nova/tests/test_virt.py @@ -171,7 +171,7 @@ class LibvirtConnTestCase(test.TestCase): for (libvirt_type, (expected_uri, checks)) in type_uri_map.iteritems(): FLAGS.libvirt_type = libvirt_type - conn = libvirt_conn.get_connection(True) + conn = libvirt_conn.LibvirtConnection(True) uri = conn.get_uri() self.assertEquals(uri, expected_uri) |
