diff options
Diffstat (limited to 'Tests/RunCMake/FileAPI/check_index.py')
-rw-r--r-- | Tests/RunCMake/FileAPI/check_index.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/check_index.py b/Tests/RunCMake/FileAPI/check_index.py index 6cc16a5..4d90d59 100644 --- a/Tests/RunCMake/FileAPI/check_index.py +++ b/Tests/RunCMake/FileAPI/check_index.py @@ -81,6 +81,12 @@ def check_error(value, error): assert is_string(value["error"]) assert value["error"] == error +def check_error_re(value, error): + assert is_dict(value) + assert sorted(value.keys()) == ["error"] + assert is_string(value["error"]) + assert re.search(error, value["error"]) + reply_index = sys.argv[1] reply_dir = os.path.dirname(reply_index) |