Debian Codegraph @

tests/test_domain_checkpoint.py

raw symbols SCIP
1 import unittest
2 import libvirt
3
4
5 class TestLibvirtDomainCheckpoint(unittest.TestCase):
6 def setUp(self):
7 self.conn = libvirt.open("test:///default")
8 self.dom = self.conn.lookupByName("test")
9
10 def tearDown(self):
11 self.dom = None
12 self.conn = None
13
14 @unittest.skipUnless(hasattr(libvirt.virDomain, "checkpointCreateXML"),
15 "checkpoints not supported in this libvirt")
16 def testCheckpointCreate(self):
17 cp = self.dom.checkpointCreateXML("<domaincheckpoint/>")
18 cp.delete()