{"action":"created","comment":{"url":"https://api.github.com/repos/mtth/hdfs/pulls/comments/35068667","id":35068667,"diff_hunk":"@@ -504,6 +504,52 @@ def test_missing(self):\n     self.client.status('foo')\n \n \n+class TestChangeOwner(_TestSession):\n+\n+  def test_directory(self):\n+    new_owner = 'newowner'\n+    self.client._mkdirs('foo')\n+    self.client.change_owner('foo', new_owner)\n+    status = self.client.status('foo')\n+    status = self.client.status('foo')\n+    eq_(status['owner'], new_owner)\n+\n+  def test_file(self):\n+    new_owner = 'newowner'\n+    self.client.write('foo', 'hello, world!')\n+    status = self.client.status('foo')\n+    print status","path":"test/test_client.py","position":18,"original_position":18,"commit_id":"47381d23acf5b5b9c7ad28d8a353456180e14328","original_commit_id":"47381d23acf5b5b9c7ad28d8a353456180e14328","user":{"login":"mtth","id":1216372,"avatar_url":"https://avatars.githubusercontent.com/u/1216372?v=3","gravatar_id":"","url":"https://api.github.com/users/mtth","html_url":"https://github.com/mtth","followers_url":"https://api.github.com/users/mtth/followers","following_url":"https://api.github.com/users/mtth/following{/other_user}","gists_url":"https://api.github.com/users/mtth/gists{/gist_id}","starred_url":"https://api.github.com/users/mtth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtth/subscriptions","organizations_url":"https://api.github.com/users/mtth/orgs","repos_url":"https://api.github.com/users/mtth/repos","events_url":"https://api.github.com/users/mtth/events{/privacy}","received_events_url":"https://api.github.com/users/mtth/received_events","type":"User","site_admin":false},"body":"You forgot to remove this?","created_at":"2015-07-21T04:19:47Z","updated_at":"2015-07-21T04:19:47Z","html_url":"https://github.com/mtth/hdfs/pull/24#discussion_r35068667","pull_request_url":"https://api.github.com/repos/mtth/hdfs/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/mtth/hdfs/pulls/comments/35068667"},"html":{"href":"https://github.com/mtth/hdfs/pull/24#discussion_r35068667"},"pull_request":{"href":"https://api.github.com/repos/mtth/hdfs/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/mtth/hdfs/pulls/24","id":40365021,"html_url":"https://github.com/mtth/hdfs/pull/24","diff_url":"https://github.com/mtth/hdfs/pull/24.diff","patch_url":"https://github.com/mtth/hdfs/pull/24.patch","issue_url":"https://api.github.com/repos/mtth/hdfs/issues/24","number":24,"state":"open","locked":false,"title":"WIP Add change_owner and change_permissions to Client.","user":{"login":"ihodes","id":167803,"avatar_url":"https://avatars.githubusercontent.com/u/167803?v=3","gravatar_id":"","url":"https://api.github.com/users/ihodes","html_url":"https://github.com/ihodes","followers_url":"https://api.github.com/users/ihodes/followers","following_url":"https://api.github.com/users/ihodes/following{/other_user}","gists_url":"https://api.github.com/users/ihodes/gists{/gist_id}","starred_url":"https://api.github.com/users/ihodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihodes/subscriptions","organizations_url":"https://api.github.com/users/ihodes/orgs","repos_url":"https://api.github.com/users/ihodes/repos","events_url":"https://api.github.com/users/ihodes/events{/privacy}","received_events_url":"https://api.github.com/users/ihodes/received_events","type":"User","site_admin":false},"body":"This is a WIP (still need to add tests). \r\n\r\nIs this a reasonable approach + appropriate naming? Is there anything else you'd like changed?\r\n\r\nThanks!","created_at":"2015-07-20T15:35:36Z","updated_at":"2015-07-21T04:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32f26f647d26ea69093b29ce88d6dfcf97a9a461","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mtth/hdfs/pulls/24/commits","review_comments_url":"https://api.github.com/repos/mtth/hdfs/pulls/24/comments","review_comment_url":"https://api.github.com/repos/mtth/hdfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mtth/hdfs/issues/24/comments","statuses_url":"https://api.github.com/repos/mtth/hdfs/statuses/47381d23acf5b5b9c7ad28d8a353456180e14328","head":{"label":"ihodes:add-change-owner-permissions","ref":"add-change-owner-permissions","sha":"47381d23acf5b5b9c7ad28d8a353456180e14328","user":{"login":"ihodes","id":167803,"avatar_url":"https://avatars.githubusercontent.com/u/167803?v=3","gravatar_id":"","url":"https://api.github.com/users/ihodes","html_url":"https://github.com/ihodes","followers_url":"https://api.github.com/users/ihodes/followers","following_url":"https://api.github.com/users/ihodes/following{/other_user}","gists_url":"https://api.github.com/users/ihodes/gists{/gist_id}","starred_url":"https://api.github.com/users/ihodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihodes/subscriptions","organizations_url":"https://api.github.com/users/ihodes/orgs","repos_url":"https://api.github.com/users/ihodes/repos","events_url":"https://api.github.com/users/ihodes/events{/privacy}","received_events_url":"https://api.github.com/users/ihodes/received_events","type":"User","site_admin":false},"repo":{"id":39391402,"name":"hdfs","full_name":"ihodes/hdfs","owner":{"login":"ihodes","id":167803,"avatar_url":"https://avatars.githubusercontent.com/u/167803?v=3","gravatar_id":"","url":"https://api.github.com/users/ihodes","html_url":"https://github.com/ihodes","followers_url":"https://api.github.com/users/ihodes/followers","following_url":"https://api.github.com/users/ihodes/following{/other_user}","gists_url":"https://api.github.com/users/ihodes/gists{/gist_id}","starred_url":"https://api.github.com/users/ihodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihodes/subscriptions","organizations_url":"https://api.github.com/users/ihodes/orgs","repos_url":"https://api.github.com/users/ihodes/repos","events_url":"https://api.github.com/users/ihodes/events{/privacy}","received_events_url":"https://api.github.com/users/ihodes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ihodes/hdfs","description":"API and command line interface for HDFS","fork":true,"url":"https://api.github.com/repos/ihodes/hdfs","forks_url":"https://api.github.com/repos/ihodes/hdfs/forks","keys_url":"https://api.github.com/repos/ihodes/hdfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ihodes/hdfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ihodes/hdfs/teams","hooks_url":"https://api.github.com/repos/ihodes/hdfs/hooks","issue_events_url":"https://api.github.com/repos/ihodes/hdfs/issues/events{/number}","events_url":"https://api.github.com/repos/ihodes/hdfs/events","assignees_url":"https://api.github.com/repos/ihodes/hdfs/assignees{/user}","branches_url":"https://api.github.com/repos/ihodes/hdfs/branches{/branch}","tags_url":"https://api.github.com/repos/ihodes/hdfs/tags","blobs_url":"https://api.github.com/repos/ihodes/hdfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ihodes/hdfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ihodes/hdfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ihodes/hdfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ihodes/hdfs/statuses/{sha}","languages_url":"https://api.github.com/repos/ihodes/hdfs/languages","stargazers_url":"https://api.github.com/repos/ihodes/hdfs/stargazers","contributors_url":"https://api.github.com/repos/ihodes/hdfs/contributors","subscribers_url":"https://api.github.com/repos/ihodes/hdfs/subscribers","subscription_url":"https://api.github.com/repos/ihodes/hdfs/subscription","commits_url":"https://api.github.com/repos/ihodes/hdfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ihodes/hdfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ihodes/hdfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ihodes/hdfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ihodes/hdfs/contents/{+path}","compare_url":"https://api.github.com/repos/ihodes/hdfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ihodes/hdfs/merges","archive_url":"https://api.github.com/repos/ihodes/hdfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ihodes/hdfs/downloads","issues_url":"https://api.github.com/repos/ihodes/hdfs/issues{/number}","pulls_url":"https://api.github.com/repos/ihodes/hdfs/pulls{/number}","milestones_url":"https://api.github.com/repos/ihodes/hdfs/milestones{/number}","notifications_url":"https://api.github.com/repos/ihodes/hdfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ihodes/hdfs/labels{/name}","releases_url":"https://api.github.com/repos/ihodes/hdfs/releases{/id}","created_at":"2015-07-20T15:18:10Z","updated_at":"2015-07-20T15:18:10Z","pushed_at":"2015-07-20T22:00:57Z","git_url":"git://github.com/ihodes/hdfs.git","ssh_url":"git@github.com:ihodes/hdfs.git","clone_url":"https://github.com/ihodes/hdfs.git","svn_url":"https://github.com/ihodes/hdfs","homepage":"http://hdfscli.readthedocs.org","size":729,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mtth:master","ref":"master","sha":"46a3baae83b6b2999e5197f4fd1dd3cfc551a81b","user":{"login":"mtth","id":1216372,"avatar_url":"https://avatars.githubusercontent.com/u/1216372?v=3","gravatar_id":"","url":"https://api.github.com/users/mtth","html_url":"https://github.com/mtth","followers_url":"https://api.github.com/users/mtth/followers","following_url":"https://api.github.com/users/mtth/following{/other_user}","gists_url":"https://api.github.com/users/mtth/gists{/gist_id}","starred_url":"https://api.github.com/users/mtth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtth/subscriptions","organizations_url":"https://api.github.com/users/mtth/orgs","repos_url":"https://api.github.com/users/mtth/repos","events_url":"https://api.github.com/users/mtth/events{/privacy}","received_events_url":"https://api.github.com/users/mtth/received_events","type":"User","site_admin":false},"repo":{"id":17606177,"name":"hdfs","full_name":"mtth/hdfs","owner":{"login":"mtth","id":1216372,"avatar_url":"https://avatars.githubusercontent.com/u/1216372?v=3","gravatar_id":"","url":"https://api.github.com/users/mtth","html_url":"https://github.com/mtth","followers_url":"https://api.github.com/users/mtth/followers","following_url":"https://api.github.com/users/mtth/following{/other_user}","gists_url":"https://api.github.com/users/mtth/gists{/gist_id}","starred_url":"https://api.github.com/users/mtth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtth/subscriptions","organizations_url":"https://api.github.com/users/mtth/orgs","repos_url":"https://api.github.com/users/mtth/repos","events_url":"https://api.github.com/users/mtth/events{/privacy}","received_events_url":"https://api.github.com/users/mtth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtth/hdfs","description":"API and command line interface for HDFS","fork":false,"url":"https://api.github.com/repos/mtth/hdfs","forks_url":"https://api.github.com/repos/mtth/hdfs/forks","keys_url":"https://api.github.com/repos/mtth/hdfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtth/hdfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtth/hdfs/teams","hooks_url":"https://api.github.com/repos/mtth/hdfs/hooks","issue_events_url":"https://api.github.com/repos/mtth/hdfs/issues/events{/number}","events_url":"https://api.github.com/repos/mtth/hdfs/events","assignees_url":"https://api.github.com/repos/mtth/hdfs/assignees{/user}","branches_url":"https://api.github.com/repos/mtth/hdfs/branches{/branch}","tags_url":"https://api.github.com/repos/mtth/hdfs/tags","blobs_url":"https://api.github.com/repos/mtth/hdfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtth/hdfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtth/hdfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtth/hdfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtth/hdfs/statuses/{sha}","languages_url":"https://api.github.com/repos/mtth/hdfs/languages","stargazers_url":"https://api.github.com/repos/mtth/hdfs/stargazers","contributors_url":"https://api.github.com/repos/mtth/hdfs/contributors","subscribers_url":"https://api.github.com/repos/mtth/hdfs/subscribers","subscription_url":"https://api.github.com/repos/mtth/hdfs/subscription","commits_url":"https://api.github.com/repos/mtth/hdfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtth/hdfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtth/hdfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtth/hdfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtth/hdfs/contents/{+path}","compare_url":"https://api.github.com/repos/mtth/hdfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtth/hdfs/merges","archive_url":"https://api.github.com/repos/mtth/hdfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtth/hdfs/downloads","issues_url":"https://api.github.com/repos/mtth/hdfs/issues{/number}","pulls_url":"https://api.github.com/repos/mtth/hdfs/pulls{/number}","milestones_url":"https://api.github.com/repos/mtth/hdfs/milestones{/number}","notifications_url":"https://api.github.com/repos/mtth/hdfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtth/hdfs/labels{/name}","releases_url":"https://api.github.com/repos/mtth/hdfs/releases{/id}","created_at":"2014-03-10T19:49:09Z","updated_at":"2015-07-17T17:11:05Z","pushed_at":"2015-07-20T22:00:57Z","git_url":"git://github.com/mtth/hdfs.git","ssh_url":"git@github.com:mtth/hdfs.git","clone_url":"https://github.com/mtth/hdfs.git","svn_url":"https://github.com/mtth/hdfs","homepage":"http://hdfscli.readthedocs.org","size":729,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mtth/hdfs/pulls/24"},"html":{"href":"https://github.com/mtth/hdfs/pull/24"},"issue":{"href":"https://api.github.com/repos/mtth/hdfs/issues/24"},"comments":{"href":"https://api.github.com/repos/mtth/hdfs/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/mtth/hdfs/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/mtth/hdfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mtth/hdfs/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/mtth/hdfs/statuses/47381d23acf5b5b9c7ad28d8a353456180e14328"}}}}