blob: 440a449218b970deae0b43519d766ee90aa25987 [file] [log] [blame]
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
import datetime
DEPS = [
def RunSteps(api):
now = api.time.time()
api.step('echo', ['echo', str(now)])
assert isinstance(api.time.utcnow(), datetime.datetime)
assert isinstance(api.time.ms_since_epoch(), int)
def GenTests(api):
yield api.test('defaults')
yield api.test('seed_and_step') + api.time.seed(123) + api.time.step(2)