def test_with_file():    
    filename = "_yaml_spec_sample.txt"
    p = docstring_to_file(yaml_doc, filename)
    d1, d2, d3 = load_spec_from_yaml(p)
    assert d1 == header_dict
    assert d2 == unit_dict
    assert d3 == reader_dict
    
    d1, d2 = load_spec(p)
    assert d1 == header_dict
    assert d2 == unit_dict
def dump_var_list_explained():
    """Writes table of variables (label, desciption, unit) to src/output/varnames.md"""    
    tab_table = get_table()
    docstring_to_file(tab_table, "varnames.md", "output")
def init_main_yaml():    
    return docstring_to_file(yaml_main, MAIN_YAML_FILENAME)
def init_raw_csv_file():
    doc = "\n".join([ip,trans,investment])
    return docstring_to_file(doc, RAW_FILE)    
def init_additional_yaml():    
    return docstring_to_file(yaml_main, ADDITIONAL_YAML_FILENAME)
# -----------------------------------------------------------------------------
def init_config_yaml():    
    return docstring_to_file(yaml_config, CONFIG_YAML_FILENAME)