1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
13 from vstf.controller.functiontest.driver.drivertest import config_setup
14 from vstf.controller.unittest import model
17 class TestDriverFunction(model.Test):
19 logging.info("start driver function test unit test.")
21 def test_config_setup(self):
22 config ,_ = config_setup()
23 for key in ("test_scene","bond_flag","switch_module"):
24 self.assertTrue(key in config.keys(), "config_setup function failure.")
27 logging.info("stop driver function test unit test.")
29 if __name__ == "__main__":
31 logging.basicConfig(level = logging.INFO)