Commit 8738a70e by Carpoon

Added tests

Test for import export functions
Exam functions
Periodc clean funtions
parent bc1550c0
......@@ -24,6 +24,7 @@ from vm.operations import (
DeployOperation, DestroyOperation, FlushOperation, MigrateOperation,
RebootOperation, ResetOperation, SaveAsTemplateOperation,
ShutdownOperation, ShutOffOperation, SleepOperation, WakeUpOperation,
ExportVmOperation
)
......@@ -104,3 +105,8 @@ class SleepOperationTestCase(TestCase):
class WakeUpOperationTestCase(TestCase):
def test_operation_registered(self):
assert WakeUpOperation.id in getattr(Instance, op_reg_name)
class ExportVmOperationTestCase(TestCase):
def test_operation_registered(self):
assert ExportVmOperation.id in getattr(Instance, op_reg_name)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment