mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-25 04:58:57 +03:00
indent by 4 spaces one spaces around assignments Signed-off-by: Philipp Hahn <hahn@univention.de>
17 lines
425 B
Python
17 lines
425 B
Python
import unittest
|
|
import libvirt
|
|
|
|
|
|
class TestLibvirtConn(unittest.TestCase):
|
|
def setUp(self):
|
|
self.conn = libvirt.open("test:///default")
|
|
|
|
def tearDown(self):
|
|
self.conn = None
|
|
|
|
def testConnDomainList(self):
|
|
doms = self.conn.listAllDomains()
|
|
self.assertEquals(len(doms), 1)
|
|
self.assertEquals(type(doms[0]), libvirt.virDomain)
|
|
self.assertEquals(doms[0].name(), "test")
|