Upload the contribution of vstf as bottleneck network framework.
[bottlenecks.git] / vstf / vstf / controller / unittest / test_driver_function.py
1 """
2 Created on 2015-10-27
3 @author: l00190809
4 """
5 import unittest
6 import json
7
8 from vstf.controller.functiontest.driver.drivertest import config_setup
9 from vstf.controller.unittest import model
10
11
12 class TestDriverFunction(model.Test):   
13     def setUp(self):
14         logging.info("start driver function test unit test.")
15         
16     def test_config_setup(self):
17         config ,_ = config_setup()
18         for key in ("test_scene","bond_flag","switch_module"):
19             self.assertTrue(key in config.keys(), "config_setup function failure.")
20
21     def teardown(self):
22         logging.info("stop driver function test unit test.")
23
24 if __name__ == "__main__":
25     import logging
26     logging.basicConfig(level = logging.INFO)
27     unittest.main()