aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_scene.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_scene.py b/tests/test_scene.py
index 056f3e1..0d2e3c9 100644
--- a/tests/test_scene.py
+++ b/tests/test_scene.py
@@ -265,3 +265,9 @@ class SceneTest(unittest.TestCase):
def test_bad_vertices(self):
with self.assertRaisesRegex(Error, "bad vertices"):
self.fig2(verts=[[0, 0], [1, 0], [0, 1]])
+
+ def test_bone_name_mapped_to_id(self):
+ scene, _ = self.fig2(hip_extra={"name": "Hip", "formulas": [{
+ "output": "Hip:/data/Test/Fig2/Fig2.dsf#hip?center_point/y",
+ "operations": [{"op": "push", "val": 1}]}]})
+ self.assertEqual(len(scene.graph.formulas["hip:hip?center_point/y"]), 1)