Merge "Add unit tests for "server resume" command."

This commit is contained in:
Jenkins 2015-11-26 19:34:22 +00:00 committed by Gerrit Code Review
commit 840ffa72e2

@ -779,6 +779,26 @@ class TestServerResize(TestServer):
)
class TestServerResume(TestServer):
def setUp(self):
super(TestServerResume, self).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_servers('resume', 1)
def test_server_resume_multi_servers(self):
self.run_method_with_servers('resume', 3)
class TestServerSuspend(TestServer):
def setUp(self):