shotgunsoftware/python-api — pull request #19 by kporangehat (2012-09-12 22:40:45+00:00)
Title: 18786 fix clearing thumbnail

This has a couple of things in it.

* Re-enable the ability to clear a thumbnail by issuing an update() with the 'image' value set to None.
* clean up the create() and update() methods handling of uploading thumbnails whilst creating and updating (there was some copy.deepcopy stuff and temp vars in there that didn't seem necessary to me.
* added tests for uploading and clearing thumbnail.
* modified the existing test for linked entity thumbnails to make it specific to that task.
* moved getting the server_address to the base test object so it's available for all tests
* fix the test_upload_thumbnail_in_create test so it doesn't fail. We don't (yet) have a way to download thumbnails so comparison of the files isn't possible.