test_component.py
Go to the documentation of this file.
1 from Component import Component
2 ########################### Test with config parser
3 print "\ntest : --- Testing with config parser"
4 import os
5 import config_parser
6 
7 test_config = "%s/test/test_config.json"%os.environ["NOVAANAVALID_DIR"]
8 print "test : input file: %s"%test_config
9 parsed_config = config_parser.config_parser(test_config)
10 component = Component(parsed_config["components"][0])
11 print component.dataset
12 print "test : --- passed\n"
def config_parser(config_file)
Definition: config_parser.py:1