Merge "Remove duplicated method in test_compute_api.py"
This commit is contained in:
commit
c55dd49e10
@ -307,14 +307,6 @@ class _ComputeAPIUnitTestMixIn(object):
|
||||
self.compute_api.stop,
|
||||
self.context, instance)
|
||||
|
||||
def test_stop_a_stopped_inst(self):
|
||||
params = {'vm_state': vm_states.STOPPED}
|
||||
instance = self._create_instance_obj(params=params)
|
||||
|
||||
self.assertRaises(exception.InstanceInvalidState,
|
||||
self.compute_api.stop,
|
||||
self.context, instance)
|
||||
|
||||
def test_stop_no_host(self):
|
||||
params = {'host': ''}
|
||||
instance = self._create_instance_obj(params=params)
|
||||
|
Loading…
x
Reference in New Issue
Block a user