Index: recipe_modules/path/examples/full.py |
diff --git a/recipe_modules/path/examples/full.py b/recipe_modules/path/examples/full.py |
index 255c3262fed01a0131c22f9716447047c1e3c317..0870a41a61476cea61f3ea712a372e55a6c10587 100644 |
--- a/recipe_modules/path/examples/full.py |
+++ b/recipe_modules/path/examples/full.py |
@@ -56,6 +56,11 @@ def RunSteps(api): |
api.path.mock_add_paths(file_path) |
assert api.path.exists(file_path) |
+ # Assert that we can mock filesystem paths. |
+ root_path = ('C:\\Windows' if api.platform.is_win else '/bin') |
+ api.path.mock_add_paths(root_path) |
+ assert api.path.exists(root_path) |
+ |
realpath = api.path.realpath(file_path) |
assert api.path.exists(realpath) |