Sometimes we have dicts indexed by integers in yaml tests

This commit is contained in:
Honza Král
2015-02-16 16:15:56 +01:00
parent 756298a360
commit cca84058ff
@@ -72,7 +72,7 @@ class YamlTestCase(ElasticsearchTestCase):
continue continue
step = step.replace('\1', '.') step = step.replace('\1', '.')
step = self._resolve(step) step = self._resolve(step)
if step.isdigit(): if step.isdigit() and step not in value:
step = int(step) step = int(step)
self.assertIsInstance(value, list) self.assertIsInstance(value, list)
self.assertGreater(len(value), step) self.assertGreater(len(value), step)