summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorAlexander Dutton <dev@alexdutton.co.uk>2014-03-26 14:30:17 +0000
committerAlexander Dutton <dev@alexdutton.co.uk>2014-03-26 14:30:17 +0000
commit95a5b4672a60ecf298ea86ef501550fb0c032d52 (patch)
treee14638a784111da6ca29f65eaa8aff4d40b66565 /tests.py
parentac7c86e1bc35ba3e22bf5e68945d2c9316b754f9 (diff)
downloadpython-json-pointer-95a5b4672a60ecf298ea86ef501550fb0c032d52.tar.gz
JsonPointer.from_parts should handle the empty path
[The RFC says](http://tools.ietf.org/html/rfc6901#page-5) that the path `""` points at the original document. However, passing `[]` to `from_parts()` results in a path of `"/"` (the same as when one passes `[""]`. This makes the empty list produce a pointer for the empty path.
Diffstat (limited to 'tests.py')
0 files changed, 0 insertions, 0 deletions