def test_form_lines_pairs_stability(self): points = generate_random_points_list(100, 100.0) bisector_to_pair = make_bisector_to_pair_map(points) angle_to_bisector = make_angle_to_bisector_map(bisector_to_pair) med_bisector = get_median_bisector(angle_to_bisector) exp_len = len(angle_to_bisector) exp_result = form_lines_pairs(angle_to_bisector, med_bisector) for i in range(100): self.assertEqual(exp_len, len(angle_to_bisector)) result = form_lines_pairs(angle_to_bisector, med_bisector) self.assertTrue(check_lists_equality(exp_result, result))