| Index: scripts/slave/recipe_modules/path/test_api.py
|
| diff --git a/scripts/slave/recipe_modules/path/test_api.py b/scripts/slave/recipe_modules/path/test_api.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..607fe575d8fc3a66d5d113192276504cec818122
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/path/test_api.py
|
| @@ -0,0 +1,12 @@
|
| +from recipe_engine import recipe_test_api
|
| +from recipe_engine.config_types import Path, NamedBasePath
|
| +
|
| +class PathTestApi(recipe_test_api.RecipeTestApi):
|
| + @recipe_test_api.mod_test_data
|
| + @staticmethod
|
| + def exists(*paths):
|
| + assert all(isinstance(p, Path) for p in paths)
|
| + return paths
|
| +
|
| + def __getitem__(self, name):
|
| + return Path(NamedBasePath(name))
|
|
|