blob: a90833ea8e177dccb6543738adc3ebad1ba18a83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import unittest
import libvirt
class TestLibvirtDomainSnapshot(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 testSnapCreate(self):
snap = self.dom.snapshotCreateXML("<domainsnapshot/>")
snap.delete()
|