def test_large_data(self):
     large_data = []
     for i in range(100):
         large_data.append([random.randint(0, 100), 10**9])
     self.assertEquals(collect_signatures(large_data), [10**9])
 def test_single_segment_same_values(self):
     self.assertEquals(collect_signatures([[3, 3]]), [3])
 def test_list_with_two_results(self):
     segments = [[4, 7], [1, 3], [2, 5], [5, 6]]
     self.assertEquals(collect_signatures(segments), [3, 6])
 def test_single_segment(self):
     self.assertEquals(collect_signatures([[4, 7]]), [7])
 def test_list_with_single_result(self):
     segments = [[1, 3], [2, 5], [3, 6]]
     self.assertEqual(collect_signatures(segments), [3])