diff options
| author | Zuul <zuul@review.openstack.org> | 2018-07-25 00:52:39 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-07-25 00:52:39 +0000 |
| commit | e78a2e7b0937c69ca5dfbbe0f0d2117fc13195a1 (patch) | |
| tree | e3fb2cfd2acb0209da1b5eff330a504482fe17f3 /openstackclient/tests | |
| parent | d838c696059719d285d431e3d47bc018c93b2ea5 (diff) | |
| parent | fc76db0def66df5bbbc1dc67231b11a531d279fc (diff) | |
| download | python-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.py | 7 |
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( |
