Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / vstf / vstf_scripts / 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
19     def setUp(self):
20         logging.info("start driver function test unit test.")
21
22     def test_config_setup(self):
23         config, _ = config_setup()
24         for key in ("test_scene", "bond_flag", "switch_module"):
25             self.assertTrue(
26                 key in config.keys(),
27                 "config_setup function failure.")
28
29     def teardown(self):
30         logging.info("stop driver function test unit test.")
31
32 if __name__ == "__main__":
33     import logging
34     logging.basicConfig(level=logging.INFO)
35     unittest.main()