예제 #1
0
def test_parser_conf_init():
    conf()

    assert conf._ParserConf__conf_instance is not None
    assert conf.get('xpath.maintenance_msg') is not None

    cf = conf.get_config()
    assert cf.get('xpath', 'maintenance_msg') is not None
예제 #2
0
def test_parser_conf_no_conf_file():
    conf('<invalid_file_path>')
예제 #3
0
def test_parser_conf_no_conf_file():

    conf('conf/parser.ini')
    assert conf._ParserConf__conf_instance is not None