'Helper, a context manager to set the current time value.'

@contextmanager
def set_time(self, time):

    mock_time = patch('utils.timer.time.time')
    mock_time.start().return_value = time
    (yield)
    mock_time.stop()
