def test_poses5(self):
        tol = 0.001
        expected_result = [(0, 1), (1, 2), (2, 4)]
        # Result should be unaffected by global transformation.
        for poses in (POSES_5, POSES_5_TRANSFORMED):
            target_angle = math.pi - tol
            id_pairs = filters.filter_pairs_by_angle(poses, target_angle, tol,
                                                     all_pairs=False)
            self.assertEqual(id_pairs, expected_result)
            # Check for same result when using degrees:
            target_angle = np.rad2deg(target_angle)
            id_pairs = filters.filter_pairs_by_angle(poses, target_angle, tol,
                                                     all_pairs=False,
                                                     degrees=True)
            self.assertEqual(id_pairs, expected_result)