@@ -0,0 +1,2013 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals, print_function%0A%0Aimport os%0Aimport unittest%0A%0Aimport json%0A%0A%0Aclass TestConf(unittest.TestCase):%0A    %22%22%22%0A    A TestCase for configutation files.%0A    %22%22%22%0A%0A    def test_defaults_syntax(self):%0A        %22%22%22 Test if defaults.conf has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../conf/defaults.conf')) as fhandle:%0A            json.load(fhandle)%0A%0A    def test_harmonization_syntax(self):%0A        %22%22%22 Test if defaults.conf has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../conf/harmonization.conf')) as fhandle:%0A            json.load(fhandle)%0A%0A    def test_pipeline_syntax(self):%0A        %22%22%22 Test if defaults.conf has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../conf/pipeline.conf')) as fhandle:%0A            json.load(fhandle)%0A%0A    def test_runtime_syntax(self):%0A        %22%22%22 Test if defaults.conf has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../conf/runtime.conf')) as fhandle:%0A            json.load(fhandle)%0A%0A    def test_startup_syntax(self):%0A        %22%22%22 Test if defaults.conf has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../conf/startup.conf')) as fhandle:%0A            json.load(fhandle)%0A%0A    def test_system_syntax(self):%0A        %22%22%22 Test if defaults.conf has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../conf/system.conf')) as fhandle:%0A            json.load(fhandle)%0A%0A    def test_BOTS_syntax(self):%0A        %22%22%22 Test if BOTS has correct syntax. %22%22%22%0A        with open(os.path.join(os.path.dirname(__file__),%0A                               '../bots/BOTS')) as fhandle:%0A            json.load(fhandle)%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

test for config file syntax