diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py index 8872503d..c7d3fee0 100644 --- a/test_elasticsearch/test_server/test_common.py +++ b/test_elasticsearch/test_server/test_common.py @@ -61,9 +61,11 @@ class YamlTestCase(TestCase): def _lookup(self, path): # fetch the possibly nested value from last_response value = self.last_response + path = path.replace(r'\.', '\1') for step in path.split('.'): if not step: continue + step = step.replace('\1', '.') if step.isdigit(): step = int(step) self.assertIsInstance(value, list)