Skip to content

Commit ed8c963

Browse files
author
Roberto De Ioris
committed
added text for #4
1 parent 9f159af commit ed8c963

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_bvh.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ def test_frame_channel(self):
126126
self.assertEqual(mocap.frame_joint_channel(22, 'Neck', 'Xrotation'), -6.77)
127127
self.assertEqual(mocap.frame_joint_channel(22, 'Head', 'Yrotation'), 8.47)
128128

129+
def test_frame_channel_fallback(self):
130+
with open('tests/test_mocapbank.bvh') as f:
131+
mocap = Bvh(f.read())
132+
self.assertEqual(mocap.frame_joint_channel(22, 'Hips', 'Badrotation', 17), 17)
133+
129134
def test_frame_channel2(self):
130135
with open('tests/test_freebvh.bvh') as f:
131136
mocap = Bvh(f.read())

0 commit comments

Comments
 (0)