add tests for subpath

This commit is contained in:
2019-02-14 21:51:49 +01:00
parent 25cd9e14ea
commit 09b25bdd8c
120 changed files with 119 additions and 2 deletions

View File

@ -578,7 +578,7 @@ class Config:
'type': 'object'}
if root_path:
root = self.root.split('.')
if not path.startswith(root):
if not path.startswith(self.root):
raise Exception('cannot find {0}'.format(path))
subpaths = path.split('.')[len(root):]
else: