|
21 | 21 | from openstackclient.tests.unit import utils as tests_utils |
22 | 22 |
|
23 | 23 |
|
24 | | -class TestHost(compute_fakes.TestComputev2): |
25 | | - def setUp(self): |
26 | | - super(TestHost, self).setUp() |
27 | | - |
28 | | - # Get a shortcut to the compute client |
29 | | - self.app.client_manager.sdk_connection.compute = mock.Mock() |
30 | | - self.compute_sdk_client = ( |
31 | | - self.app.client_manager.sdk_connection.compute |
32 | | - ) |
33 | | - self.compute_sdk_client.get = mock.Mock() |
34 | | - |
35 | | - |
36 | 24 | @mock.patch('openstackclient.api.compute_v2.APIv2.host_list') |
37 | | -class TestHostList(TestHost): |
| 25 | +class TestHostList(compute_fakes.TestComputev2): |
38 | 26 | _host = compute_fakes.create_one_host() |
39 | 27 |
|
40 | 28 | def setUp(self): |
@@ -93,7 +81,7 @@ def test_host_list_with_option(self, h_mock): |
93 | 81 |
|
94 | 82 |
|
95 | 83 | @mock.patch('openstackclient.api.compute_v2.APIv2.host_set') |
96 | | -class TestHostSet(TestHost): |
| 84 | +class TestHostSet(compute_fakes.TestComputev2): |
97 | 85 | def setUp(self): |
98 | 86 | super(TestHostSet, self).setUp() |
99 | 87 |
|
@@ -143,7 +131,7 @@ def test_host_set(self, h_mock): |
143 | 131 |
|
144 | 132 |
|
145 | 133 | @mock.patch('openstackclient.api.compute_v2.APIv2.host_show') |
146 | | -class TestHostShow(TestHost): |
| 134 | +class TestHostShow(compute_fakes.TestComputev2): |
147 | 135 | _host = compute_fakes.create_one_host() |
148 | 136 |
|
149 | 137 | def setUp(self): |
|
0 commit comments