diff options
author | asteroide <thomas.duval@orange.com> | 2015-09-22 10:59:20 +0200 |
---|---|---|
committer | asteroide <thomas.duval@orange.com> | 2015-09-22 10:59:20 +0200 |
commit | 9caa954d75981b8641b76978316cbe591e845b55 (patch) | |
tree | 6a9ae066c32cf89edac638f3159d287d00396cf4 | |
parent | d165264bc24d693c6f3cdfb7fe360a94c9ea91ca (diff) |
Change the regular expression used to catch ''
Change-Id: I62a6f21b0a22fac0c82799a77b8cab202242b5c0
-rw-r--r-- | moonclient/moonclient/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moonclient/moonclient/tests.py b/moonclient/moonclient/tests.py index 1e1020bf..5badf4bc 100644 --- a/moonclient/moonclient/tests.py +++ b/moonclient/moonclient/tests.py @@ -33,7 +33,7 @@ class TestsLaunch(Lister): def __replace_var_in_str(self, data_str): for exp in re.findall("\$\w+", data_str): if exp.replace("$", "") in self.result_vars: - data_str = re.sub(exp.replace("$", "\$") + "(?=$|\s)", self.result_vars[exp.replace("$", "")], data_str) + data_str = re.sub(exp.replace("$", "\$") + "(?!\w)", self.result_vars[exp.replace("$", "")], data_str) return data_str def __compare_results(self, expected, observed): |