665732aae85034ccdba0eef982a2f68a2310060c
[bottlenecks.git] / vstf / vstf / controller / unittest / test_cfg_intent_parse.py
1 """
2 Created on 2015-10-14
3
4 @author: y00228926
5 """
6 import os
7 import unittest
8
9 from vstf.controller.unittest import model
10 from vstf.controller.env_build.cfg_intent_parse import IntentParser
11
12
13 class Test(model.Test):
14     def setUp(self):
15         super(Test, self).setUp()
16         self.dir = os.path.dirname(__file__)
17
18     def tearDown(self):
19         super(Test, self).tearDown()
20
21     def test_parse_cfg_file(self):
22         for m in ['Ti', 'Tu', 'Tn', 'Tnv']:
23             filepath = os.path.join(self.dir, 'configuration/env/%s.json' % m)
24             parser = IntentParser(filepath)
25             parser.parse_cfg_file()
26
27
28 if __name__ == "__main__":
29     import logging
30
31     logging.basicConfig(level=logging.INFO)
32     unittest.main()