Esempio n. 1
0
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
Esempio n. 2
0
 def save_store(self, path):
     jutil.save_pickle(self.storage, path)
Esempio n. 3
0
 def save_store(self, path):
     jutil.save_pickle(self.storage, path)