jgonera/fake_dropbox — pull request #1 by grantovich (2012-11-09 18:55:34+00:00)
Title: Support /media and Public folder downloads

This changeset adds support for the [/media API](https://www.dropbox.com/developers/reference/api#media). On the live service this returns a transient download URL that becomes invalid after four hours, but here it's just static. Since it was only a small step from there to emulating [Public folder access](https://www.dropbox.com/help/16/en), I implemented that as well (Public folder URLs are like permanent sharing URLs whose structure is predictable if you know the UID).

Also, the live `/files_put` API allows creating any number of nested directories when uploading, whereas the `fake_dropbox` implementation required the target directory to already exist. I fixed this and revised the tests accordingly.