예제 #1
0
파일: test_util.py 프로젝트: wocclyl/JAQS
def test_read_save_pickle():
    fp = jutil.join_relative_path('../output/tests/test_read_save_pickle.pic')
    d = {'a': 1.0, 'b': 2, 'c': True, 'd': list()}
    jutil.save_pickle(d, fp)
    
    d2 = jutil.load_pickle(fp)
    assert d2['b'] == 2
    
    d3 = jutil.load_pickle('a_non_exits_file_blabla.pic')
    assert d3 is None
예제 #2
0
파일: model.py 프로젝트: smartgang/JAQS
 def save_store(self, path):
     jutil.save_pickle(self.storage, path)
예제 #3
0
파일: model.py 프로젝트: sukeyisme/JAQS
 def save_store(self, path):
     jutil.save_pickle(self.storage, path)