Debian Codegraph @

tests/test_domain_snapshot.py

raw symbols SCIP
1 import unittest
2 import libvirt
3
4
5 class TestLibvirtDomainSnapshot(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 def testSnapCreate(self):
15 snap = self.dom.snapshotCreateXML("<domainsnapshot/>")
16 snap.delete()