def METHOD_NAME(self):
    i = iter_with_sleep()
    it = TimeoutIterator(i, timeout=0.5, sentinel="END")
    self.assertEqual(next(it), 1)
    self.assertEqual(next(it), "END")
    self.assertEqual(next(it), 2)
    self.assertEqual(next(it), 3)
    self.assertRaises(StopIteration, next, it)