Merge "Remove unnecessary 'self.methods'"
This commit is contained in:
commit
0a9a1753b5
@ -5865,16 +5865,11 @@ class TestServerMigrate(TestServer):
|
||||
class TestServerPause(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
super(TestServerPause, self).setUp()
|
||||
super().setUp()
|
||||
|
||||
# Get the command object to test
|
||||
self.cmd = server.PauseServer(self.app, None)
|
||||
|
||||
# Set methods to be tested.
|
||||
self.methods = {
|
||||
'pause': None,
|
||||
}
|
||||
|
||||
def test_server_pause_one_server(self):
|
||||
self.run_method_with_sdk_servers('pause_server', 1)
|
||||
|
||||
@ -7523,16 +7518,11 @@ class TestServerRestore(TestServer):
|
||||
class TestServerResume(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
super(TestServerResume, self).setUp()
|
||||
super().setUp()
|
||||
|
||||
# Get the command object to test
|
||||
self.cmd = server.ResumeServer(self.app, None)
|
||||
|
||||
# Set methods to be tested.
|
||||
self.methods = {
|
||||
'resume': None,
|
||||
}
|
||||
|
||||
def test_server_resume_one_server(self):
|
||||
self.run_method_with_sdk_servers('resume_server', 1)
|
||||
|
||||
@ -8288,16 +8278,11 @@ class TestServerStop(TestServer):
|
||||
class TestServerSuspend(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
super(TestServerSuspend, self).setUp()
|
||||
super().setUp()
|
||||
|
||||
# Get the command object to test
|
||||
self.cmd = server.SuspendServer(self.app, None)
|
||||
|
||||
# Set methods to be tested.
|
||||
self.methods = {
|
||||
'suspend': None,
|
||||
}
|
||||
|
||||
def test_server_suspend_one_server(self):
|
||||
self.run_method_with_sdk_servers('suspend_server', 1)
|
||||
|
||||
@ -8323,16 +8308,11 @@ class TestServerUnlock(TestServer):
|
||||
class TestServerUnpause(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
super(TestServerUnpause, self).setUp()
|
||||
super().setUp()
|
||||
|
||||
# Get the command object to test
|
||||
self.cmd = server.UnpauseServer(self.app, None)
|
||||
|
||||
# Set methods to be tested.
|
||||
self.methods = {
|
||||
'unpause': None,
|
||||
}
|
||||
|
||||
def test_server_unpause_one_server(self):
|
||||
self.run_method_with_sdk_servers('unpause_server', 1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user