def test_make_csv():

    # tab.doc is assumed to be in TESTDATA_DIR
    # will run only on Windows with MS Word    
    
    csv = os.path.join(TESTDATA_DIR, RESERVED_FILENAMES['csv'])
    if os.path.exists(csv):
        os.remove(csv)
    make_csv(TESTDATA_DIR)
    assert 6267 == os.path.getsize(csv)
    os.remove(csv)
Beispiel #2
0
 def init_from_folder(self, data_folder):
     make_csv(self.folder)
     csv_path = os.path.join(data_folder, RESERVED_FILENAMES['csv'])
     cfg_path = os.path.join(data_folder, RESERVED_FILENAMES['cfg']) 
     self.init_by_paths(csv_path, cfg_path)