def METHOD_NAME(self):
    i = iter_with_sleep()
    it = TimeoutIterator(i, timeout=0.5)
    iterResults = []
    for x in it:
        iterResults.append(x)
    self.assertEqual(iterResults, [1, it.get_sentinel(), 2, 3])