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>
20 lines
525 B
Python
20 lines
525 B
Python
import unittest
|
|
import libvirt
|
|
|
|
|
|
class TestLibvirtDomain(unittest.TestCase):
|
|
def setUp(self):
|
|
self.conn = libvirt.open("test:///default")
|
|
self.dom = self.conn.lookupByName("test")
|
|
|
|
def tearDown(self):
|
|
self.dom = None
|
|
self.conn = None
|
|
|
|
def testDomainSchedParams(self):
|
|
params = self.dom.schedulerParameters()
|
|
self.assertEquals(len(params), 1)
|
|
self.assertTrue("weight" in params)
|
|
params["weight"] = 100
|
|
self.dom.setSchedulerParameters(params)
|