{"action":"created","comment":{"url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/comments/50848692","id":50848692,"diff_hunk":"@@ -318,6 +318,17 @@ def test_upload_thumbnail_for_task(self):\n             self.version['id'], {'image': None})\n         expected_clear_thumbnail = {'id': self.version['id'], 'image': None, 'type': 'Version'}\n         self.assertEqual(expected_clear_thumbnail, response_clear_thumbnail)\n+        \n+    def test_upload_thumbnail_with_upload_function(self):\n+        \"\"\"Upload thumbnail via upload function test\"\"\"\n+        this_dir, _ = os.path.split(__file__)\n+        path = os.path.abspath(os.path.expanduser(\n+            os.path.join(this_dir,\"sg_logo.jpg\")))\n+        size = os.stat(path).st_size","path":"tests/test_api.py","position":10,"original_position":10,"commit_id":"fb6a09cff832e74ef517bc404f45aba17ca3181c","original_commit_id":"fb64bf5e6e599d4a9adff6828c51a3bff5b1160e","user":{"login":"Zaltu","id":16653478,"avatar_url":"https://avatars.githubusercontent.com/u/16653478?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaltu","html_url":"https://github.com/Zaltu","followers_url":"https://api.github.com/users/Zaltu/followers","following_url":"https://api.github.com/users/Zaltu/following{/other_user}","gists_url":"https://api.github.com/users/Zaltu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaltu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaltu/subscriptions","organizations_url":"https://api.github.com/users/Zaltu/orgs","repos_url":"https://api.github.com/users/Zaltu/repos","events_url":"https://api.github.com/users/Zaltu/events{/privacy}","received_events_url":"https://api.github.com/users/Zaltu/received_events","type":"User","site_admin":false},"body":"I'll add an internal ticket to clean up internal test functions and make that a separate branch.","created_at":"2016-01-26T15:25:56Z","updated_at":"2016-01-26T15:25:56Z","html_url":"https://github.com/shotgunsoftware/python-api/pull/100#discussion_r50848692","pull_request_url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/comments/50848692"},"html":{"href":"https://github.com/shotgunsoftware/python-api/pull/100#discussion_r50848692"},"pull_request":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100","id":56944166,"html_url":"https://github.com/shotgunsoftware/python-api/pull/100","diff_url":"https://github.com/shotgunsoftware/python-api/pull/100.diff","patch_url":"https://github.com/shotgunsoftware/python-api/pull/100.patch","issue_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues/100","number":100,"state":"open","locked":false,"title":"Ticket/34463 upload thumbnail","user":{"login":"Zaltu","id":16653478,"avatar_url":"https://avatars.githubusercontent.com/u/16653478?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaltu","html_url":"https://github.com/Zaltu","followers_url":"https://api.github.com/users/Zaltu/followers","following_url":"https://api.github.com/users/Zaltu/following{/other_user}","gists_url":"https://api.github.com/users/Zaltu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaltu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaltu/subscriptions","organizations_url":"https://api.github.com/users/Zaltu/orgs","repos_url":"https://api.github.com/users/Zaltu/repos","events_url":"https://api.github.com/users/Zaltu/events{/privacy}","received_events_url":"https://api.github.com/users/Zaltu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-22T21:29:46Z","updated_at":"2016-01-26T15:25:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a635d78b160c54d1b20beedcb57c7c829f52f6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100/commits","review_comments_url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100/comments","review_comment_url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues/100/comments","statuses_url":"https://api.github.com/repos/shotgunsoftware/python-api/statuses/fb6a09cff832e74ef517bc404f45aba17ca3181c","head":{"label":"shotgunsoftware:ticket/34463-upload-thumbnail","ref":"ticket/34463-upload-thumbnail","sha":"fb6a09cff832e74ef517bc404f45aba17ca3181c","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":748742,"name":"python-api","full_name":"shotgunsoftware/python-api","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/python-api","description":"A Python-based API for accessing Shotgun and integrating with other tools","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/python-api","forks_url":"https://api.github.com/repos/shotgunsoftware/python-api/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/python-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/python-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/python-api/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/python-api/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/python-api/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/python-api/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/python-api/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/python-api/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/python-api/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/python-api/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/python-api/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/python-api/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/python-api/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/python-api/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/python-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/python-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/python-api/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/python-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/python-api/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/python-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/python-api/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/python-api/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/python-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/python-api/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/python-api/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/python-api/deployments","created_at":"2010-06-30T09:39:10Z","updated_at":"2016-01-21T19:44:00Z","pushed_at":"2016-01-26T15:19:42Z","git_url":"git://github.com/shotgunsoftware/python-api.git","ssh_url":"git@github.com:shotgunsoftware/python-api.git","clone_url":"https://github.com/shotgunsoftware/python-api.git","svn_url":"https://github.com/shotgunsoftware/python-api","homepage":"https://github.com/shotgunsoftware/python-api/wiki","size":4001,"stargazers_count":143,"watchers_count":143,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"open_issues_count":21,"forks":76,"open_issues":21,"watchers":143,"default_branch":"master"}},"base":{"label":"shotgunsoftware:master","ref":"master","sha":"e5449df4c5fcbd8c730ab4e5cc6d9a53deda2b8a","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":748742,"name":"python-api","full_name":"shotgunsoftware/python-api","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/python-api","description":"A Python-based API for accessing Shotgun and integrating with other tools","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/python-api","forks_url":"https://api.github.com/repos/shotgunsoftware/python-api/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/python-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/python-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/python-api/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/python-api/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/python-api/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/python-api/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/python-api/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/python-api/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/python-api/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/python-api/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/python-api/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/python-api/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/python-api/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/python-api/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/python-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/python-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/python-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/python-api/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/python-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/python-api/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/python-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/python-api/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/python-api/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/python-api/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/python-api/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/python-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/python-api/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/python-api/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/python-api/deployments","created_at":"2010-06-30T09:39:10Z","updated_at":"2016-01-21T19:44:00Z","pushed_at":"2016-01-26T15:19:42Z","git_url":"git://github.com/shotgunsoftware/python-api.git","ssh_url":"git@github.com:shotgunsoftware/python-api.git","clone_url":"https://github.com/shotgunsoftware/python-api.git","svn_url":"https://github.com/shotgunsoftware/python-api","homepage":"https://github.com/shotgunsoftware/python-api/wiki","size":4001,"stargazers_count":143,"watchers_count":143,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"open_issues_count":21,"forks":76,"open_issues":21,"watchers":143,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100"},"html":{"href":"https://github.com/shotgunsoftware/python-api/pull/100"},"issue":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/issues/100"},"comments":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/shotgunsoftware/python-api/statuses/fb6a09cff832e74ef517bc404f45aba17ca3181c"}}}}