summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-25 00:52:39 +0000
committerGerrit Code Review <review@openstack.org>2018-07-25 00:52:39 +0000
commite78a2e7b0937c69ca5dfbbe0f0d2117fc13195a1 (patch)
treee3fb2cfd2acb0209da1b5eff330a504482fe17f3 /openstackclient/tests
parentd838c696059719d285d431e3d47bc018c93b2ea5 (diff)
parentfc76db0def66df5bbbc1dc67231b11a531d279fc (diff)
downloadpython-openstackclient-e78a2e7b0937c69ca5dfbbe0f0d2117fc13195a1.tar.gz
Merge "compute: host: expand kwargs in host_set() call"
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/unit/compute/v2/test_host.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/openstackclient/tests/unit/compute/v2/test_host.py b/openstackclient/tests/unit/compute/v2/test_host.py
index 329095de..244da413 100644
--- a/openstackclient/tests/unit/compute/v2/test_host.py
+++ b/openstackclient/tests/unit/compute/v2/test_host.py
@@ -111,8 +111,7 @@ class TestHostSet(TestHost):
result = self.cmd.take_action(parsed_args)
self.assertIsNone(result)
- body = {}
- h_mock.assert_called_with(self.host['host'], body)
+ h_mock.assert_called_with(self.host['host'])
def test_host_set(self, h_mock):
h_mock.return_value = self.host
@@ -133,8 +132,8 @@ class TestHostSet(TestHost):
result = self.cmd.take_action(parsed_args)
self.assertIsNone(result)
- body = {'status': 'enable', 'maintenance_mode': 'disable'}
- h_mock.assert_called_with(self.host['host'], body)
+ h_mock.assert_called_with(self.host['host'], status='enable',
+ maintenance_mode='disable')
@mock.patch(