Exemplo n.º 1
0
 def test_vm_info(self):
     '''
         Test to return detailed information about the vms
     '''
     with patch.object(xapi, "_get_xapi_session", MagicMock()):
         mock = MagicMock(return_value=False)
         with patch.object(xapi, "_get_record_by_label", mock):
             self.assertDictEqual(xapi.vm_info(True), {True: False})
Exemplo n.º 2
0
 def test_vm_info(self):
     '''
         Test to return detailed information about the vms
     '''
     with patch.object(xapi, "_get_xapi_session", MagicMock()):
         mock = MagicMock(return_value=False)
         with patch.object(xapi, "_get_record_by_label", mock):
             self.assertDictEqual(xapi.vm_info(True), {True: False})