Commit ad98fcb3 authored by Jason R. Coombs's avatar Jason R. Coombs

Add two tests capturing expectation for '' and None to _validate_resource_path. Ref #1686.

parent cdb5eeae
......@@ -1512,6 +1512,19 @@ is not allowed.
...
ValueError: Use of .. or absolute path in a resource path \
is not allowed.
Blank values are allowed
>>> vrp('')
>>> bool(warned)
False
Non-string values are not.
>>> vrp(None)
Traceback (most recent call last):
...
AttributeError: ...
"""
invalid = (
os.path.pardir in path.split(posixpath.sep) or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment