blob: e2c7362560436952a913ae801f2193221a813ce1 [file] [log] [blame]
# Copyright 2015 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.
from builtins import int
from recipe_engine import recipe_test_api
class PathTestApi(recipe_test_api.RecipeTestApi):
def seed(self, seed):
assert isinstance(seed, int), (
'bad seed %s, expected (int, long)' % (type(seed),))
ret = self.test(None)
ret.properties = {'$recipe_engine/random': {'seed': seed}}
return ret