test-packages/libvirt: registerErrorHandler

This commit is contained in:
Wojtek Porczyk 2017-09-01 18:38:32 +02:00
parent 029ec9cb38
commit 96f5f3d4b6

View File

@ -14,6 +14,9 @@ class libvirtError(Exception):
def openReadOnly(*args, **kwargs):
raise libvirtError('mock module, always raises')
def registerErrorHandler(f, ctx):
pass
VIR_DOMAIN_BLOCKED = 2
VIR_DOMAIN_RUNNING = 1
VIR_DOMAIN_PAUSED = 3