예제 #1
0
def test_persist():
    with tempdir():
        os.mkdir(Constants.DEFAULT_LDIR)
        db = CsvDatabase()
        db.persist()
        assert(os.path.exists(db.filename))