{"action":"created","comment":{"url":"https://api.github.com/repos/des4maisons/charlesbot/pulls/comments/36037921","id":36037921,"diff_hunk":"@@ -0,0 +1,78 @@\n+import asynctest\n+from asynctest.mock import call\n+from asynctest.mock import patch\n+from asynctest.mock import MagicMock\n+\n+\n+class TestAddToRoom(asynctest.TestCase):\n+\n+    def test_add_bogus_input(self):\n+        with patch('charlesbot.plugins.broadcast_message.BroadcastMessage.__init__') as mock_init:  # NOQA","path":"tests/plugins/broadcast_message/test_add_to_room.py","position":10,"original_position":10,"commit_id":"3cdf0c72793c8afbab14dba9a125c25995fe3ba4","original_commit_id":"3cdf0c72793c8afbab14dba9a125c25995fe3ba4","user":{"login":"des4maisons","id":684904,"avatar_url":"https://avatars.githubusercontent.com/u/684904?v=3","gravatar_id":"","url":"https://api.github.com/users/des4maisons","html_url":"https://github.com/des4maisons","followers_url":"https://api.github.com/users/des4maisons/followers","following_url":"https://api.github.com/users/des4maisons/following{/other_user}","gists_url":"https://api.github.com/users/des4maisons/gists{/gist_id}","starred_url":"https://api.github.com/users/des4maisons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4maisons/subscriptions","organizations_url":"https://api.github.com/users/des4maisons/orgs","repos_url":"https://api.github.com/users/des4maisons/repos","events_url":"https://api.github.com/users/des4maisons/events{/privacy}","received_events_url":"https://api.github.com/users/des4maisons/received_events","type":"User","site_admin":false},"body":"I don't know how I feel about mocking init... What sideffects are you trying to avoid? If it's the main event loop, maybe you can mock the `asyncio.get_event_loop` or `asyncio.Queue`.","created_at":"2015-08-01T23:17:02Z","updated_at":"2015-08-01T23:17:02Z","html_url":"https://github.com/des4maisons/charlesbot/pull/1#discussion_r36037921","pull_request_url":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/des4maisons/charlesbot/pulls/comments/36037921"},"html":{"href":"https://github.com/des4maisons/charlesbot/pull/1#discussion_r36037921"},"pull_request":{"href":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1","id":41405628,"html_url":"https://github.com/des4maisons/charlesbot/pull/1","diff_url":"https://github.com/des4maisons/charlesbot/pull/1.diff","patch_url":"https://github.com/des4maisons/charlesbot/pull/1.patch","issue_url":"https://api.github.com/repos/des4maisons/charlesbot/issues/1","number":1,"state":"open","locked":false,"title":"RFC Add Broadcast Message + Help plugins demonstrate plugin architecture","user":{"login":"des4maisons","id":684904,"avatar_url":"https://avatars.githubusercontent.com/u/684904?v=3","gravatar_id":"","url":"https://api.github.com/users/des4maisons","html_url":"https://github.com/des4maisons","followers_url":"https://api.github.com/users/des4maisons/followers","following_url":"https://api.github.com/users/des4maisons/following{/other_user}","gists_url":"https://api.github.com/users/des4maisons/gists{/gist_id}","starred_url":"https://api.github.com/users/des4maisons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4maisons/subscriptions","organizations_url":"https://api.github.com/users/des4maisons/orgs","repos_url":"https://api.github.com/users/des4maisons/repos","events_url":"https://api.github.com/users/des4maisons/events{/privacy}","received_events_url":"https://api.github.com/users/des4maisons/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-01T18:19:29Z","updated_at":"2015-08-01T23:17:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c50178b952ac7845ccbe4bc5489e99fb985f4f94","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/des4maisons/charlesbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/des4maisons/charlesbot/issues/1/comments","statuses_url":"https://api.github.com/repos/des4maisons/charlesbot/statuses/3cdf0c72793c8afbab14dba9a125c25995fe3ba4","head":{"label":"des4maisons:rfc-branch","ref":"rfc-branch","sha":"3cdf0c72793c8afbab14dba9a125c25995fe3ba4","user":{"login":"des4maisons","id":684904,"avatar_url":"https://avatars.githubusercontent.com/u/684904?v=3","gravatar_id":"","url":"https://api.github.com/users/des4maisons","html_url":"https://github.com/des4maisons","followers_url":"https://api.github.com/users/des4maisons/followers","following_url":"https://api.github.com/users/des4maisons/following{/other_user}","gists_url":"https://api.github.com/users/des4maisons/gists{/gist_id}","starred_url":"https://api.github.com/users/des4maisons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4maisons/subscriptions","organizations_url":"https://api.github.com/users/des4maisons/orgs","repos_url":"https://api.github.com/users/des4maisons/repos","events_url":"https://api.github.com/users/des4maisons/events{/privacy}","received_events_url":"https://api.github.com/users/des4maisons/received_events","type":"User","site_admin":false},"repo":{"id":40055817,"name":"charlesbot","full_name":"des4maisons/charlesbot","owner":{"login":"des4maisons","id":684904,"avatar_url":"https://avatars.githubusercontent.com/u/684904?v=3","gravatar_id":"","url":"https://api.github.com/users/des4maisons","html_url":"https://github.com/des4maisons","followers_url":"https://api.github.com/users/des4maisons/followers","following_url":"https://api.github.com/users/des4maisons/following{/other_user}","gists_url":"https://api.github.com/users/des4maisons/gists{/gist_id}","starred_url":"https://api.github.com/users/des4maisons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4maisons/subscriptions","organizations_url":"https://api.github.com/users/des4maisons/orgs","repos_url":"https://api.github.com/users/des4maisons/repos","events_url":"https://api.github.com/users/des4maisons/events{/privacy}","received_events_url":"https://api.github.com/users/des4maisons/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/des4maisons/charlesbot","description":"CharlesBOT is a Python bot written to take advantage of Slack's Real Time Messaging API","fork":true,"url":"https://api.github.com/repos/des4maisons/charlesbot","forks_url":"https://api.github.com/repos/des4maisons/charlesbot/forks","keys_url":"https://api.github.com/repos/des4maisons/charlesbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/des4maisons/charlesbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/des4maisons/charlesbot/teams","hooks_url":"https://api.github.com/repos/des4maisons/charlesbot/hooks","issue_events_url":"https://api.github.com/repos/des4maisons/charlesbot/issues/events{/number}","events_url":"https://api.github.com/repos/des4maisons/charlesbot/events","assignees_url":"https://api.github.com/repos/des4maisons/charlesbot/assignees{/user}","branches_url":"https://api.github.com/repos/des4maisons/charlesbot/branches{/branch}","tags_url":"https://api.github.com/repos/des4maisons/charlesbot/tags","blobs_url":"https://api.github.com/repos/des4maisons/charlesbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/des4maisons/charlesbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/des4maisons/charlesbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/des4maisons/charlesbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/des4maisons/charlesbot/statuses/{sha}","languages_url":"https://api.github.com/repos/des4maisons/charlesbot/languages","stargazers_url":"https://api.github.com/repos/des4maisons/charlesbot/stargazers","contributors_url":"https://api.github.com/repos/des4maisons/charlesbot/contributors","subscribers_url":"https://api.github.com/repos/des4maisons/charlesbot/subscribers","subscription_url":"https://api.github.com/repos/des4maisons/charlesbot/subscription","commits_url":"https://api.github.com/repos/des4maisons/charlesbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/des4maisons/charlesbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/des4maisons/charlesbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/des4maisons/charlesbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/des4maisons/charlesbot/contents/{+path}","compare_url":"https://api.github.com/repos/des4maisons/charlesbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/des4maisons/charlesbot/merges","archive_url":"https://api.github.com/repos/des4maisons/charlesbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/des4maisons/charlesbot/downloads","issues_url":"https://api.github.com/repos/des4maisons/charlesbot/issues{/number}","pulls_url":"https://api.github.com/repos/des4maisons/charlesbot/pulls{/number}","milestones_url":"https://api.github.com/repos/des4maisons/charlesbot/milestones{/number}","notifications_url":"https://api.github.com/repos/des4maisons/charlesbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/des4maisons/charlesbot/labels{/name}","releases_url":"https://api.github.com/repos/des4maisons/charlesbot/releases{/id}","created_at":"2015-08-01T18:15:49Z","updated_at":"2015-08-01T18:15:49Z","pushed_at":"2015-08-01T18:19:29Z","git_url":"git://github.com/des4maisons/charlesbot.git","ssh_url":"git@github.com:des4maisons/charlesbot.git","clone_url":"https://github.com/des4maisons/charlesbot.git","svn_url":"https://github.com/des4maisons/charlesbot","homepage":null,"size":192,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"des4maisons:master","ref":"master","sha":"610d24792589f7f855dad9753d56966f81b3e908","user":{"login":"des4maisons","id":684904,"avatar_url":"https://avatars.githubusercontent.com/u/684904?v=3","gravatar_id":"","url":"https://api.github.com/users/des4maisons","html_url":"https://github.com/des4maisons","followers_url":"https://api.github.com/users/des4maisons/followers","following_url":"https://api.github.com/users/des4maisons/following{/other_user}","gists_url":"https://api.github.com/users/des4maisons/gists{/gist_id}","starred_url":"https://api.github.com/users/des4maisons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4maisons/subscriptions","organizations_url":"https://api.github.com/users/des4maisons/orgs","repos_url":"https://api.github.com/users/des4maisons/repos","events_url":"https://api.github.com/users/des4maisons/events{/privacy}","received_events_url":"https://api.github.com/users/des4maisons/received_events","type":"User","site_admin":false},"repo":{"id":40055817,"name":"charlesbot","full_name":"des4maisons/charlesbot","owner":{"login":"des4maisons","id":684904,"avatar_url":"https://avatars.githubusercontent.com/u/684904?v=3","gravatar_id":"","url":"https://api.github.com/users/des4maisons","html_url":"https://github.com/des4maisons","followers_url":"https://api.github.com/users/des4maisons/followers","following_url":"https://api.github.com/users/des4maisons/following{/other_user}","gists_url":"https://api.github.com/users/des4maisons/gists{/gist_id}","starred_url":"https://api.github.com/users/des4maisons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4maisons/subscriptions","organizations_url":"https://api.github.com/users/des4maisons/orgs","repos_url":"https://api.github.com/users/des4maisons/repos","events_url":"https://api.github.com/users/des4maisons/events{/privacy}","received_events_url":"https://api.github.com/users/des4maisons/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/des4maisons/charlesbot","description":"CharlesBOT is a Python bot written to take advantage of Slack's Real Time Messaging API","fork":true,"url":"https://api.github.com/repos/des4maisons/charlesbot","forks_url":"https://api.github.com/repos/des4maisons/charlesbot/forks","keys_url":"https://api.github.com/repos/des4maisons/charlesbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/des4maisons/charlesbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/des4maisons/charlesbot/teams","hooks_url":"https://api.github.com/repos/des4maisons/charlesbot/hooks","issue_events_url":"https://api.github.com/repos/des4maisons/charlesbot/issues/events{/number}","events_url":"https://api.github.com/repos/des4maisons/charlesbot/events","assignees_url":"https://api.github.com/repos/des4maisons/charlesbot/assignees{/user}","branches_url":"https://api.github.com/repos/des4maisons/charlesbot/branches{/branch}","tags_url":"https://api.github.com/repos/des4maisons/charlesbot/tags","blobs_url":"https://api.github.com/repos/des4maisons/charlesbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/des4maisons/charlesbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/des4maisons/charlesbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/des4maisons/charlesbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/des4maisons/charlesbot/statuses/{sha}","languages_url":"https://api.github.com/repos/des4maisons/charlesbot/languages","stargazers_url":"https://api.github.com/repos/des4maisons/charlesbot/stargazers","contributors_url":"https://api.github.com/repos/des4maisons/charlesbot/contributors","subscribers_url":"https://api.github.com/repos/des4maisons/charlesbot/subscribers","subscription_url":"https://api.github.com/repos/des4maisons/charlesbot/subscription","commits_url":"https://api.github.com/repos/des4maisons/charlesbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/des4maisons/charlesbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/des4maisons/charlesbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/des4maisons/charlesbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/des4maisons/charlesbot/contents/{+path}","compare_url":"https://api.github.com/repos/des4maisons/charlesbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/des4maisons/charlesbot/merges","archive_url":"https://api.github.com/repos/des4maisons/charlesbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/des4maisons/charlesbot/downloads","issues_url":"https://api.github.com/repos/des4maisons/charlesbot/issues{/number}","pulls_url":"https://api.github.com/repos/des4maisons/charlesbot/pulls{/number}","milestones_url":"https://api.github.com/repos/des4maisons/charlesbot/milestones{/number}","notifications_url":"https://api.github.com/repos/des4maisons/charlesbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/des4maisons/charlesbot/labels{/name}","releases_url":"https://api.github.com/repos/des4maisons/charlesbot/releases{/id}","created_at":"2015-08-01T18:15:49Z","updated_at":"2015-08-01T18:15:49Z","pushed_at":"2015-08-01T18:19:29Z","git_url":"git://github.com/des4maisons/charlesbot.git","ssh_url":"git@github.com:des4maisons/charlesbot.git","clone_url":"https://github.com/des4maisons/charlesbot.git","svn_url":"https://github.com/des4maisons/charlesbot","homepage":null,"size":192,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1"},"html":{"href":"https://github.com/des4maisons/charlesbot/pull/1"},"issue":{"href":"https://api.github.com/repos/des4maisons/charlesbot/issues/1"},"comments":{"href":"https://api.github.com/repos/des4maisons/charlesbot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/des4maisons/charlesbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/des4maisons/charlesbot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/des4maisons/charlesbot/statuses/3cdf0c72793c8afbab14dba9a125c25995fe3ba4"}}}}