Check whitelisted paths #13107 (#13154)

This commit is contained in:
Johann Kellerman 2018-03-30 04:57:19 +02:00 committed by Paulus Schoutsen
parent 3e5462ebff
commit 507c658fe9
2 changed files with 9 additions and 4 deletions

View file

@ -809,7 +809,8 @@ class TestConfig(unittest.TestCase):
valid = [
test_file,
tmp_dir
tmp_dir,
os.path.join(tmp_dir, 'notfound321')
]
for path in valid:
assert self.config.is_allowed_path(path)