Skip to content

Commit 8826263

Browse files
Remove unnecessary setUp methods
TrivialFix Change-Id: I082d4eabdc4a50ba9af8a3b18d2f6641093c312e
1 parent 1316c1c commit 8826263

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

nova/tests/functional/api_sample_tests/test_servers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,6 @@ class ServersSampleJson273Test(ServersSampleBase):
519519
microversion = '2.73'
520520
scenarios = [('v2_73', {'api_major_version': 'v2.1'})]
521521

522-
def setUp(self):
523-
super(ServersSampleJson273Test, self).setUp()
524-
525522
def _post_server_and_lock(self):
526523
uuid = self._post_server(use_common_server_api_samples=False)
527524
reason = "I don't want to work"

nova/tests/unit/api/openstack/compute/test_serversV21.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,9 +2556,6 @@ class ServersControllerTestV273(ControllerTest):
25562556
"""
25572557
wsgi_api_version = '2.73'
25582558

2559-
def setUp(self):
2560-
super(ServersControllerTestV273, self).setUp()
2561-
25622559
def req(self, url, use_admin_context=False):
25632560
return fakes.HTTPRequest.blank(url,
25642561
use_admin_context=use_admin_context,

nova/tests/unit/virt/libvirt/volume/test_mount.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ def finish(self):
170170

171171

172172
class HostMountStateTestCase(test.NoDBTestCase):
173-
def setUp(self):
174-
super(HostMountStateTestCase, self).setUp()
175-
176173
@mock.patch('os.path.ismount',
177174
side_effect=[False, True, True, True, True])
178175
def test_init(self, mock_ismount):

0 commit comments

Comments
 (0)