Skip to content

Commit

Permalink
Add test #853
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jun 7, 2019
1 parent 35d047b commit 1bcddc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/test_im_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1bcddc5

Please sign in to comment.