Commit ebcc660c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

test serialization of Fields

parent 5596655d
Pipeline #14887 passed with stage
in 6 minutes and 9 seconds
......@@ -21,6 +21,7 @@ import unittest
from numpy.testing import assert_equal
from keepers import Repository
from test.common import expand, generate_spaces
from nifty import Field
from nose.plugins.skip import SkipTest
import os
......@@ -33,6 +34,9 @@ class SpaceSerializationTests(unittest.TestCase):
raise SkipTest
repo = Repository('test.h5')
repo.add(space, 'space')
field = Field(space,val=42.)
repo.add(field, 'field')
assert_equal(space, repo.get('space'))
assert_equal(field, repo.get('field'))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment