Use my_ip for libvirt version of get_host_ip_addr.

This commit is contained in:
Dan Prince
2011-05-02 10:17:51 -04:00
parent afc5d068bd
commit b9d6d497aa

View File

@@ -641,6 +641,11 @@ class LibvirtConnTestCase(test.TestCase):
self.assertTrue(count)
def test_get_host_ip_addr(self):
conn = libvirt_conn.LibvirtConnection(False)
ip = conn.get_host_ip_addr()
self.assertEquals(ip, FLAGS.my_ip)
def tearDown(self):
self.manager.delete_project(self.project)
self.manager.delete_user(self.user)