# 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 |