3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # Unittest for yardstick.benchmark.contexts.dummy
14 from __future__ import absolute_import
17 from yardstick.benchmark.contexts import dummy
20 class DummyContextTestCase(unittest.TestCase):
23 self.test_context = dummy.DummyContext()
25 def test__get_server(self):
26 self.test_context.init(None)
27 self.test_context.deploy()
29 result = self.test_context._get_server(None)
30 self.assertEqual(result, None)
32 self.test_context.undeploy()