diff --git a/bindings/Sofa/tests/Core/BaseData.py b/bindings/Sofa/tests/Core/BaseData.py index d594e3e3..f2bdbdb5 100644 --- a/bindings/Sofa/tests/Core/BaseData.py +++ b/bindings/Sofa/tests/Core/BaseData.py @@ -408,3 +408,9 @@ def test_readOnly(self): self.assertFalse(data.isReadOnly()) data.setReadOnly(True) self.assertTrue(data.isReadOnly()) + + def test_DownCast(self): + root = Sofa.Core.Node('root') + self.assertEqual(type(root.name), Sofa.Core.DataString) + self.assertEqual(type(root.gravity), Sofa.Core.DataContainer) + self.assertEqual(type(root.dt), Sofa.Core.Data)