Merge "Modify unit tests of compute agent delete"
This commit is contained in:
commit
dea859430a
@ -20,6 +20,7 @@ from osc_lib import exceptions
|
||||
|
||||
from openstackclient.compute.v2 import agent
|
||||
from openstackclient.tests.compute.v2 import fakes as compute_fakes
|
||||
from openstackclient.tests import utils as tests_utils
|
||||
|
||||
|
||||
class TestAgent(compute_fakes.TestComputev2):
|
||||
@ -161,6 +162,15 @@ class TestAgentDelete(TestAgent):
|
||||
]
|
||||
self.agents_mock.delete.assert_has_calls(calls)
|
||||
|
||||
def test_agent_delete_no_input(self):
|
||||
arglist = []
|
||||
verifylist = None
|
||||
self.assertRaises(tests_utils.ParserException,
|
||||
self.check_parser,
|
||||
self.cmd,
|
||||
arglist,
|
||||
verifylist)
|
||||
|
||||
|
||||
class TestAgentList(TestAgent):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user