From d9af3a6e9229fc69d62895a372b2ac3677aee057 Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Mon, 17 Aug 2015 21:47:56 +0100 Subject: [PATCH] use _parent:_root in tests --- tests/test_finder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_finder.py b/tests/test_finder.py index 8dad573..b047530 100644 --- a/tests/test_finder.py +++ b/tests/test_finder.py @@ -56,7 +56,7 @@ def fetch(self, resource, metric, start, end): def search(self, *terms): for term in terms: - if term == '_tree:root': + if term == '_parent:_root': for r in self._resources: if ':' in r: continue @@ -85,7 +85,7 @@ def _run_query(self, pattern): def testClientSelfTest(self): self.client._insert('r1:r2:r3:r4', 'metric1') - for resource, metrics in self.client.search('_tree:root'): + for resource, metrics in self.client.search('_parent:_root'): self.assertEqual(len(metrics), 0) self.assertEqual(resource, 'r1')