From 1bcddc5f18743507fee4c2bbe127c9bce46beed8 Mon Sep 17 00:00:00 2001 From: micafer Date: Fri, 7 Jun 2019 11:44:12 +0200 Subject: [PATCH] Add test #853 --- test/unit/test_im_logic.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/test_im_logic.py b/test/unit/test_im_logic.py index 4a99f4e93..b46566cd9 100755 --- a/test/unit/test_im_logic.py +++ b/test/unit/test_im_logic.py @@ -769,6 +769,11 @@ def test_get_inf_state(self, get_inf_ids): state = IM.GetInfrastructureState("1", auth0) self.assertEqual(state["state"], "running") + inf.get_vm_list.return_value = [] + inf.configured = None + state = IM.GetInfrastructureState("1", auth0) + self.assertEqual(state["state"], "pending") + def test_altervm(self): """Test AlterVM""" radl = RADL()