'A timeout hanlder that tries to remove itself.'

def _on_timer_delete_itself(self, handle_holder):

    self.assertEqual(self.handle, handle_holder.pop())
    self.timer_got_called = True
    self.ioloop.remove_timeout(self.handle)
    self.ioloop.stop()
