def test_interpolate_joints_alpha_half_returns_half_angles(self): joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_0FIVE) self.assertDictEqual(JOINTS_ABC_FIVE, joints)
def test_interpolate_joints_alpha_zero_returns_first_pose(self): joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_ZERO) self.assertDictEqual(JOINTS_ABC_NERO, joints)
def test_interpolate_joints_alpha_one_returns_angles_from_second_set(self): joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_ONE) self.assertDictEqual(JOINTS_ABC_TEN, joints)
def test_interpolate_joints_returns_same_joints_keys_as_orginal(self): joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_ZERO) self.assertSequenceEqual(set(JOINTS_ABC_NERO.keys()), set(joints.keys()))