Upload the contribution of vstf as bottleneck network framework.
[bottlenecks.git] / vstf / vstf / controller / unittest / test_driver_function.py
diff --git a/vstf/vstf/controller/unittest/test_driver_function.py b/vstf/vstf/controller/unittest/test_driver_function.py
new file mode 100755 (executable)
index 0000000..0580442
--- /dev/null
@@ -0,0 +1,27 @@
+"""
+Created on 2015-10-27
+@author: l00190809
+"""
+import unittest
+import json
+
+from vstf.controller.functiontest.driver.drivertest import config_setup
+from vstf.controller.unittest import model
+
+
+class TestDriverFunction(model.Test):   
+    def setUp(self):
+        logging.info("start driver function test unit test.")
+        
+    def test_config_setup(self):
+        config ,_ = config_setup()
+        for key in ("test_scene","bond_flag","switch_module"):
+            self.assertTrue(key in config.keys(), "config_setup function failure.")
+
+    def teardown(self):
+        logging.info("stop driver function test unit test.")
+
+if __name__ == "__main__":
+    import logging
+    logging.basicConfig(level = logging.INFO)
+    unittest.main()
\ No newline at end of file