Commit f779b9f0 authored by Justin Carpentier's avatar Justin Carpentier

test/python: test pickling of Data

parent d3debfde
......@@ -19,5 +19,18 @@ class TestData(TestCase):
data3 = data2.copy()
self.assertEqual(data2.oMi[jointId], data3.oMi[jointId])
def test_pickle(self):
import pickle
data =
filename = "data.pickle"
with open(filename, 'wb') as f:
with open(filename, 'rb') as f:
data_copy = pickle.load(f)
self.assertTrue(data == data_copy)
if __name__ == '__main__':
Markdown is supported
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