[tests] pickle tests updated to new structure

This commit is contained in:
Max Zwiessele 2014-11-03 15:12:24 +00:00
parent 1a8cae99a5
commit 2eedd7f385

View file

@ -141,6 +141,7 @@ class Test(ListDictTestCase):
pcopy.optimize('bfgs')
par.optimize('bfgs')
np.testing.assert_allclose(pcopy.param_array, par.param_array, atol=1e-6)
par.randomize()
with tempfile.TemporaryFile('w+b') as f:
par.pickle(f)
f.seek(0)