Remove duplicated method in test_compute_api.py
Remove duplicated method test_stop_a_stopped_inst in file nova/tests/compute/test_compute_api.py Change-Id: I7222a4ba169440ca9cdc7b78a73db6afe2835c0e
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user