Improve debug message when failing the test

Added the listVM response as part of debug logging

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-06-10 13:36:13 +05:30
parent 6e24542283
commit 52f9d5efe2

View File

@ -687,10 +687,12 @@ class TestVMLifeCycle(cloudstackTestCase):
else:
break
self.debug("listVirtualMachines response: %s" % list_vm_response)
self.assertEqual(
list_vm_response,
None,
"Check Expunged virtual machine is listVirtualMachines"
"Check Expunged virtual machine is in listVirtualMachines response"
)
return