blob: 97cbde6271d9f123afccf1ee1b6148ca000e199b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import unittest
import libvirt
class TestLibvirtDomainCheckpoint(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
@unittest.skipUnless(hasattr(libvirt.virDomain, "checkpointCreateXML"),
"checkpoints not supported in this libvirt")
def testCheckpointCreate(self):
cp = self.dom.checkpointCreateXML("<domaincheckpoint/>")
cp.delete()
|