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

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

@ -799,6 +799,26 @@ class TestServerResume(TestServer):
self.run_method_with_servers('resume', 3)
class TestServerStart(TestServer):
def setUp(self):
super(TestServerStart, self).setUp()
# Get the command object to test
self.cmd = server.StartServer(self.app, None)
# Set methods to be tested.
self.methods = {
'start': None,
}
def test_server_start_one_server(self):
self.run_method_with_servers('start', 1)
def test_server_start_multi_servers(self):
self.run_method_with_servers('start', 3)
class TestServerSuspend(TestServer):
def setUp(self):