JIRA: BOTTLENECKS-29
[bottlenecks.git] / vstf / vstf / controller / unittest / test_driver_function.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
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 ##############################################################################
9
10 import unittest
11 import json
12
13 from vstf.controller.functiontest.driver.drivertest import config_setup
14 from vstf.controller.unittest import model
15
16
17 class TestDriverFunction(model.Test):   
18     def setUp(self):
19         logging.info("start driver function test unit test.")
20         
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.")
25
26     def teardown(self):
27         logging.info("stop driver function test unit test.")
28
29 if __name__ == "__main__":
30     import logging
31     logging.basicConfig(level = logging.INFO)
32     unittest.main()