{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/comments/46629995","id":46629995,"diff_hunk":"@@ -54,7 +55,17 @@ def testCreation(self):\n             assert sub.exists.called\n             assert sub.create.called\n \n-    def testQueue(self):\n+        # Test reusing existing\n+        with patch('gcloud.pubsub.Subscription') as sub_ctr:","path":"psq/queue_test.py","position":23,"original_position":23,"commit_id":"89016010c943aa0d6377db340c9f369d8d2bb9fe","original_commit_id":"89016010c943aa0d6377db340c9f369d8d2bb9fe","user":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"body":"Done, It's `SubscriptionMock` now, indicating a mocked `Subscription` class.","created_at":"2015-12-03T23:39:29Z","updated_at":"2015-12-03T23:39:29Z","html_url":"https://github.com/GoogleCloudPlatform/psq/pull/1#discussion_r46629995","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/comments/46629995"},"html":{"href":"https://github.com/GoogleCloudPlatform/psq/pull/1#discussion_r46629995"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1","id":52444488,"html_url":"https://github.com/GoogleCloudPlatform/psq/pull/1","diff_url":"https://github.com/GoogleCloudPlatform/psq/pull/1.diff","patch_url":"https://github.com/GoogleCloudPlatform/psq/pull/1.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/1","number":1,"state":"open","locked":false,"title":"100% coverage.","user":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T19:46:49Z","updated_at":"2015-12-03T23:39:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"844f8bf0998487dda40af8a4a9455d34d0f276c1","assignee":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/1/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/statuses/89016010c943aa0d6377db340c9f369d8d2bb9fe","head":{"label":"GoogleCloudPlatform:coverage","ref":"coverage","sha":"89016010c943aa0d6377db340c9f369d8d2bb9fe","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":39904369,"name":"psq","full_name":"GoogleCloudPlatform/psq","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/psq","description":"Cloud Pub/Sub Task Queue for Python","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/psq","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/releases{/id}","created_at":"2015-07-29T16:34:33Z","updated_at":"2015-11-04T22:24:21Z","pushed_at":"2015-12-02T21:49:41Z","git_url":"git://github.com/GoogleCloudPlatform/psq.git","ssh_url":"git@github.com:GoogleCloudPlatform/psq.git","clone_url":"https://github.com/GoogleCloudPlatform/psq.git","svn_url":"https://github.com/GoogleCloudPlatform/psq","homepage":"","size":38,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"7fd8bc0e818e24ddb56629d645f854f9779c0eca","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":39904369,"name":"psq","full_name":"GoogleCloudPlatform/psq","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/psq","description":"Cloud Pub/Sub Task Queue for Python","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/psq","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/psq/releases{/id}","created_at":"2015-07-29T16:34:33Z","updated_at":"2015-11-04T22:24:21Z","pushed_at":"2015-12-02T21:49:41Z","git_url":"git://github.com/GoogleCloudPlatform/psq.git","ssh_url":"git@github.com:GoogleCloudPlatform/psq.git","clone_url":"https://github.com/GoogleCloudPlatform/psq.git","svn_url":"https://github.com/GoogleCloudPlatform/psq","homepage":"","size":38,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1"},"html":{"href":"https://github.com/GoogleCloudPlatform/psq/pull/1"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/1"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/psq/statuses/89016010c943aa0d6377db340c9f369d8d2bb9fe"}}}}