示例#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)