Skip to content

Commit

Permalink
use _parent:_root in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filippog committed Aug 17, 2015
1 parent 9484b0a commit d9af3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit d9af3a6

Please sign in to comment.