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()