OLD | NEW |
| (Empty) |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 from recipe_engine import recipe_test_api | |
6 from recipe_engine.config_types import Path, NamedBasePath | |
7 | |
8 class InfraPathsTestApi(recipe_test_api.RecipeTestApi): #pragma: no cover | |
9 @recipe_test_api.mod_test_data | |
10 @staticmethod | |
11 def exists(*paths): | |
12 assert all(isinstance(p, Path) for p in paths) | |
13 return paths | |
14 | |
15 def __getitem__(self, name): | |
16 return Path(NamedBasePath(name)) | |
OLD | NEW |