mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Merge "Modify unit tests of compute agent delete"
This commit is contained in:
commit
dea859430a
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue