{"action":"created","comment":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments/47447405","id":47447405,"diff_hunk":"@@ -58,6 +58,64 @@ def test_asset_requires_a_positive_id(self):\n \n         assert self.session.get.called is False\n \n+    def test_create_fork(self):\n+        \"\"\"Verify the request to fork a repository.\"\"\"\n+        self.instance.create_fork()\n+        self.post_called_with(\n+            url_for('forks')\n+        )\n+\n+    def test_create_hook(self):\n+        \"\"\"Verify the request to create a hook.\"\"\"\n+        data = {\n+            'name': 'web',\n+            'config': {\n+                'url': 'http://example.com/webhook',\n+                'content_type': 'json'\n+            }\n+        }\n+\n+        self.instance.create_hook(**data)\n+        self.post_called_with(\n+            url_for('hooks'),\n+            data={\n+                'name': 'web',\n+                'config': {\n+                    'url': 'http://example.com/webhook',\n+                    'content_type': 'json'\n+                },\n+                'events': ['push'],\n+                'active': True\n+            }\n+        )\n+\n+    def test_create_issue(self):\n+        \"\"\"Verify the request to create an issue.\"\"\"\n+        data = {\n+            'title': 'Unit Issue',\n+            'body': 'Fake body',\n+            'assignee': 'sigmavirus24',\n+            'milestone': 1,\n+            'labels': ['bug', 'enhancement']\n+        }\n+        self.instance.create_issue(**data)","path":"tests/unit/test_repos_repo.py","position":44,"original_position":44,"commit_id":"7d01b036b11e836adb2e6e77d45a2ce0074c900f","original_commit_id":"7d01b036b11e836adb2e6e77d45a2ce0074c900f","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"body":"We probably could use some test cases here to ensure that our (probably lightweight) validation doesn't allow through certain values.","created_at":"2015-12-13T17:17:48Z","updated_at":"2015-12-13T17:17:48Z","html_url":"https://github.com/sigmavirus24/github3.py/pull/498#discussion_r47447405","pull_request_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498","_links":{"self":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments/47447405"},"html":{"href":"https://github.com/sigmavirus24/github3.py/pull/498#discussion_r47447405"},"pull_request":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498"}}},"pull_request":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498","id":53122145,"html_url":"https://github.com/sigmavirus24/github3.py/pull/498","diff_url":"https://github.com/sigmavirus24/github3.py/pull/498.diff","patch_url":"https://github.com/sigmavirus24/github3.py/pull/498.patch","issue_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/498","number":498,"state":"open","locked":false,"title":"Migrated several test cases to tests/{unit, integration}","user":{"login":"itsmemattchung","id":7358102,"avatar_url":"https://avatars.githubusercontent.com/u/7358102?v=3","gravatar_id":"","url":"https://api.github.com/users/itsmemattchung","html_url":"https://github.com/itsmemattchung","followers_url":"https://api.github.com/users/itsmemattchung/followers","following_url":"https://api.github.com/users/itsmemattchung/following{/other_user}","gists_url":"https://api.github.com/users/itsmemattchung/gists{/gist_id}","starred_url":"https://api.github.com/users/itsmemattchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsmemattchung/subscriptions","organizations_url":"https://api.github.com/users/itsmemattchung/orgs","repos_url":"https://api.github.com/users/itsmemattchung/repos","events_url":"https://api.github.com/users/itsmemattchung/events{/privacy}","received_events_url":"https://api.github.com/users/itsmemattchung/received_events","type":"User","site_admin":false},"body":"Created new unit test using data from octocat\r\nCreated integration test which creates a new web hook.","created_at":"2015-12-09T14:03:10Z","updated_at":"2015-12-13T17:17:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8c7b10bc1d7b63c19681e8e2144af145ed254e1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498/commits","review_comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498/comments","review_comment_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/498/comments","statuses_url":"https://api.github.com/repos/sigmavirus24/github3.py/statuses/7d01b036b11e836adb2e6e77d45a2ce0074c900f","head":{"label":"itsmemattchung:testing/migrate-create-hook","ref":"testing/migrate-create-hook","sha":"7d01b036b11e836adb2e6e77d45a2ce0074c900f","user":{"login":"itsmemattchung","id":7358102,"avatar_url":"https://avatars.githubusercontent.com/u/7358102?v=3","gravatar_id":"","url":"https://api.github.com/users/itsmemattchung","html_url":"https://github.com/itsmemattchung","followers_url":"https://api.github.com/users/itsmemattchung/followers","following_url":"https://api.github.com/users/itsmemattchung/following{/other_user}","gists_url":"https://api.github.com/users/itsmemattchung/gists{/gist_id}","starred_url":"https://api.github.com/users/itsmemattchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsmemattchung/subscriptions","organizations_url":"https://api.github.com/users/itsmemattchung/orgs","repos_url":"https://api.github.com/users/itsmemattchung/repos","events_url":"https://api.github.com/users/itsmemattchung/events{/privacy}","received_events_url":"https://api.github.com/users/itsmemattchung/received_events","type":"User","site_admin":false},"repo":{"id":43913126,"name":"github3.py","full_name":"itsmemattchung/github3.py","owner":{"login":"itsmemattchung","id":7358102,"avatar_url":"https://avatars.githubusercontent.com/u/7358102?v=3","gravatar_id":"","url":"https://api.github.com/users/itsmemattchung","html_url":"https://github.com/itsmemattchung","followers_url":"https://api.github.com/users/itsmemattchung/followers","following_url":"https://api.github.com/users/itsmemattchung/following{/other_user}","gists_url":"https://api.github.com/users/itsmemattchung/gists{/gist_id}","starred_url":"https://api.github.com/users/itsmemattchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsmemattchung/subscriptions","organizations_url":"https://api.github.com/users/itsmemattchung/orgs","repos_url":"https://api.github.com/users/itsmemattchung/repos","events_url":"https://api.github.com/users/itsmemattchung/events{/privacy}","received_events_url":"https://api.github.com/users/itsmemattchung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/itsmemattchung/github3.py","description":"Python library for interfacing with the GitHub APIv3","fork":true,"url":"https://api.github.com/repos/itsmemattchung/github3.py","forks_url":"https://api.github.com/repos/itsmemattchung/github3.py/forks","keys_url":"https://api.github.com/repos/itsmemattchung/github3.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itsmemattchung/github3.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itsmemattchung/github3.py/teams","hooks_url":"https://api.github.com/repos/itsmemattchung/github3.py/hooks","issue_events_url":"https://api.github.com/repos/itsmemattchung/github3.py/issues/events{/number}","events_url":"https://api.github.com/repos/itsmemattchung/github3.py/events","assignees_url":"https://api.github.com/repos/itsmemattchung/github3.py/assignees{/user}","branches_url":"https://api.github.com/repos/itsmemattchung/github3.py/branches{/branch}","tags_url":"https://api.github.com/repos/itsmemattchung/github3.py/tags","blobs_url":"https://api.github.com/repos/itsmemattchung/github3.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itsmemattchung/github3.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itsmemattchung/github3.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/itsmemattchung/github3.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itsmemattchung/github3.py/statuses/{sha}","languages_url":"https://api.github.com/repos/itsmemattchung/github3.py/languages","stargazers_url":"https://api.github.com/repos/itsmemattchung/github3.py/stargazers","contributors_url":"https://api.github.com/repos/itsmemattchung/github3.py/contributors","subscribers_url":"https://api.github.com/repos/itsmemattchung/github3.py/subscribers","subscription_url":"https://api.github.com/repos/itsmemattchung/github3.py/subscription","commits_url":"https://api.github.com/repos/itsmemattchung/github3.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/itsmemattchung/github3.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/itsmemattchung/github3.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/itsmemattchung/github3.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/itsmemattchung/github3.py/contents/{+path}","compare_url":"https://api.github.com/repos/itsmemattchung/github3.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itsmemattchung/github3.py/merges","archive_url":"https://api.github.com/repos/itsmemattchung/github3.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itsmemattchung/github3.py/downloads","issues_url":"https://api.github.com/repos/itsmemattchung/github3.py/issues{/number}","pulls_url":"https://api.github.com/repos/itsmemattchung/github3.py/pulls{/number}","milestones_url":"https://api.github.com/repos/itsmemattchung/github3.py/milestones{/number}","notifications_url":"https://api.github.com/repos/itsmemattchung/github3.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itsmemattchung/github3.py/labels{/name}","releases_url":"https://api.github.com/repos/itsmemattchung/github3.py/releases{/id}","created_at":"2015-10-08T19:57:30Z","updated_at":"2015-10-08T19:57:33Z","pushed_at":"2015-12-13T13:02:17Z","git_url":"git://github.com/itsmemattchung/github3.py.git","ssh_url":"git@github.com:itsmemattchung/github3.py.git","clone_url":"https://github.com/itsmemattchung/github3.py.git","svn_url":"https://github.com/itsmemattchung/github3.py","homepage":"http://github3py.readthedocs.org/","size":6816,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sigmavirus24:develop","ref":"develop","sha":"9fb3e242e5b85d53bb3ec7a9b4dba991311826e3","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"repo":{"id":3710711,"name":"github3.py","full_name":"sigmavirus24/github3.py","owner":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigmavirus24/github3.py","description":"Python library for interfacing with the GitHub APIv3","fork":false,"url":"https://api.github.com/repos/sigmavirus24/github3.py","forks_url":"https://api.github.com/repos/sigmavirus24/github3.py/forks","keys_url":"https://api.github.com/repos/sigmavirus24/github3.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigmavirus24/github3.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigmavirus24/github3.py/teams","hooks_url":"https://api.github.com/repos/sigmavirus24/github3.py/hooks","issue_events_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/events{/number}","events_url":"https://api.github.com/repos/sigmavirus24/github3.py/events","assignees_url":"https://api.github.com/repos/sigmavirus24/github3.py/assignees{/user}","branches_url":"https://api.github.com/repos/sigmavirus24/github3.py/branches{/branch}","tags_url":"https://api.github.com/repos/sigmavirus24/github3.py/tags","blobs_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigmavirus24/github3.py/statuses/{sha}","languages_url":"https://api.github.com/repos/sigmavirus24/github3.py/languages","stargazers_url":"https://api.github.com/repos/sigmavirus24/github3.py/stargazers","contributors_url":"https://api.github.com/repos/sigmavirus24/github3.py/contributors","subscribers_url":"https://api.github.com/repos/sigmavirus24/github3.py/subscribers","subscription_url":"https://api.github.com/repos/sigmavirus24/github3.py/subscription","commits_url":"https://api.github.com/repos/sigmavirus24/github3.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigmavirus24/github3.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigmavirus24/github3.py/contents/{+path}","compare_url":"https://api.github.com/repos/sigmavirus24/github3.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigmavirus24/github3.py/merges","archive_url":"https://api.github.com/repos/sigmavirus24/github3.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigmavirus24/github3.py/downloads","issues_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues{/number}","pulls_url":"https://api.github.com/repos/sigmavirus24/github3.py/pulls{/number}","milestones_url":"https://api.github.com/repos/sigmavirus24/github3.py/milestones{/number}","notifications_url":"https://api.github.com/repos/sigmavirus24/github3.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigmavirus24/github3.py/labels{/name}","releases_url":"https://api.github.com/repos/sigmavirus24/github3.py/releases{/id}","created_at":"2012-03-13T19:58:53Z","updated_at":"2015-12-11T11:36:31Z","pushed_at":"2015-12-13T15:33:37Z","git_url":"git://github.com/sigmavirus24/github3.py.git","ssh_url":"git@github.com:sigmavirus24/github3.py.git","clone_url":"https://github.com/sigmavirus24/github3.py.git","svn_url":"https://github.com/sigmavirus24/github3.py","homepage":"http://github3py.readthedocs.org/","size":7115,"stargazers_count":434,"watchers_count":434,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":161,"mirror_url":null,"open_issues_count":53,"forks":161,"open_issues":53,"watchers":434,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498"},"html":{"href":"https://github.com/sigmavirus24/github3.py/pull/498"},"issue":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/issues/498"},"comments":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/issues/498/comments"},"review_comments":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498/comments"},"review_comment":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/pulls/498/commits"},"statuses":{"href":"https://api.github.com/repos/sigmavirus24/github3.py/statuses/7d01b036b11e836adb2e6e77d45a2ce0074c900f"}}}}