@mock.patch.object(time, 'time')
  def test_timeExpired_false(self, mock_time):
    elapsed = 3
    mock_time.side_effect = [1, 1 + elapsed, 2 + elapsed]

    self.polledtimeout.Restart()
    sec = self.polledtimeout.seconds
    self.assertLessEqual(sec, self.timeout - elapsed)
    self.assertFalse(self.polledtimeout.HasExpired())
dataset/ETHPy150Open google/openhtf/test/util/util_test.py/TestUtil.test_timeExpired_false/original