{"action":"created","comment":{"url":"https://api.github.com/repos/testing-cabal/testtools/pulls/comments/55930455","id":55930455,"diff_hunk":"@@ -0,0 +1,97 @@\n+# Copyright (c) 2009-2016 testtools developers. See LICENSE for details.\n+\n+__all__ = [\n+    'Warnings',\n+    'warning_message',\n+    'is_deprecated']\n+\n+import warnings\n+\n+from ._basic import Is\n+from ._const import Always\n+from ._datastructures import MatchesListwise, MatchesStructure\n+from ._higherorder import (\n+    AfterPreprocessing,\n+    Annotate,\n+    MatchesAll,\n+    Not,\n+    )\n+from ._impl import Mismatch\n+\n+\n+def warning_message(category_type, message=None, filename=None, lineno=None,","path":"testtools/matchers/_warnings.py","position":22,"original_position":22,"commit_id":"edfcacf6d7172e54ccf275330c5ab7b6164bf062","original_commit_id":"edfcacf6d7172e54ccf275330c5ab7b6164bf062","user":{"login":"thomir","id":372783,"avatar_url":"https://avatars.githubusercontent.com/u/372783?v=3","gravatar_id":"","url":"https://api.github.com/users/thomir","html_url":"https://github.com/thomir","followers_url":"https://api.github.com/users/thomir/followers","following_url":"https://api.github.com/users/thomir/following{/other_user}","gists_url":"https://api.github.com/users/thomir/gists{/gist_id}","starred_url":"https://api.github.com/users/thomir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomir/subscriptions","organizations_url":"https://api.github.com/users/thomir/orgs","repos_url":"https://api.github.com/users/thomir/repos","events_url":"https://api.github.com/users/thomir/events{/privacy}","received_events_url":"https://api.github.com/users/thomir/received_events","type":"User","site_admin":false},"body":"@rbtcollins @jml : did we ever settle on a standard naming convention for matcher types? Having some matchers as functions and some as classes is a little irksome. I'm not sure what we should do at this point:\r\n\r\n * Follow pep8, and force users to import a mix of `function_name` and `ClassName` matchers?\r\n * Make functions follow `ClassName` convention (FWIW, we do this in `testtools.content` a fair bit).\r\n\r\nThoughts?","created_at":"2016-03-13T01:04:26Z","updated_at":"2016-03-13T01:04:26Z","html_url":"https://github.com/testing-cabal/testtools/pull/224#discussion_r55930455","pull_request_url":"https://api.github.com/repos/testing-cabal/testtools/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/testing-cabal/testtools/pulls/comments/55930455"},"html":{"href":"https://github.com/testing-cabal/testtools/pull/224#discussion_r55930455"},"pull_request":{"href":"https://api.github.com/repos/testing-cabal/testtools/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/testing-cabal/testtools/pulls/224","id":62653168,"html_url":"https://github.com/testing-cabal/testtools/pull/224","diff_url":"https://github.com/testing-cabal/testtools/pull/224.diff","patch_url":"https://github.com/testing-cabal/testtools/pull/224.patch","issue_url":"https://api.github.com/repos/testing-cabal/testtools/issues/224","number":224,"state":"open","locked":false,"title":"Implement matchers for warnings.","user":{"login":"jonathanj","id":112166,"avatar_url":"https://avatars.githubusercontent.com/u/112166?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanj","html_url":"https://github.com/jonathanj","followers_url":"https://api.github.com/users/jonathanj/followers","following_url":"https://api.github.com/users/jonathanj/following{/other_user}","gists_url":"https://api.github.com/users/jonathanj/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanj/subscriptions","organizations_url":"https://api.github.com/users/jonathanj/orgs","repos_url":"https://api.github.com/users/jonathanj/repos","events_url":"https://api.github.com/users/jonathanj/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanj/received_events","type":"User","site_admin":false},"body":"Introduce a matcher for capturing `warning.WarningMessage`s when\r\nexecuting a function, a function for matching `warning.WarningMessage`\r\nstructure and a function for matching deprecation warnings.\r\n\r\nFixes #223.\r\n\r\n<!-- Reviewable:start -->\r\n---\r\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/testing-cabal/testtools/224)\r\n<!-- Reviewable:end -->\r\n","created_at":"2016-03-12T21:39:41Z","updated_at":"2016-03-13T01:04:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81599e9784b092e8d5b07a73131e4eb4b47ca400","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/testing-cabal/testtools/pulls/224/commits","review_comments_url":"https://api.github.com/repos/testing-cabal/testtools/pulls/224/comments","review_comment_url":"https://api.github.com/repos/testing-cabal/testtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/testing-cabal/testtools/issues/224/comments","statuses_url":"https://api.github.com/repos/testing-cabal/testtools/statuses/edfcacf6d7172e54ccf275330c5ab7b6164bf062","head":{"label":"jonathanj:223-warnings-matcher","ref":"223-warnings-matcher","sha":"edfcacf6d7172e54ccf275330c5ab7b6164bf062","user":{"login":"jonathanj","id":112166,"avatar_url":"https://avatars.githubusercontent.com/u/112166?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanj","html_url":"https://github.com/jonathanj","followers_url":"https://api.github.com/users/jonathanj/followers","following_url":"https://api.github.com/users/jonathanj/following{/other_user}","gists_url":"https://api.github.com/users/jonathanj/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanj/subscriptions","organizations_url":"https://api.github.com/users/jonathanj/orgs","repos_url":"https://api.github.com/users/jonathanj/repos","events_url":"https://api.github.com/users/jonathanj/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanj/received_events","type":"User","site_admin":false},"repo":{"id":53740809,"name":"testtools","full_name":"jonathanj/testtools","owner":{"login":"jonathanj","id":112166,"avatar_url":"https://avatars.githubusercontent.com/u/112166?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanj","html_url":"https://github.com/jonathanj","followers_url":"https://api.github.com/users/jonathanj/followers","following_url":"https://api.github.com/users/jonathanj/following{/other_user}","gists_url":"https://api.github.com/users/jonathanj/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanj/subscriptions","organizations_url":"https://api.github.com/users/jonathanj/orgs","repos_url":"https://api.github.com/users/jonathanj/repos","events_url":"https://api.github.com/users/jonathanj/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanj/testtools","description":"Testtools - tasteful testing for python","fork":true,"url":"https://api.github.com/repos/jonathanj/testtools","forks_url":"https://api.github.com/repos/jonathanj/testtools/forks","keys_url":"https://api.github.com/repos/jonathanj/testtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanj/testtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanj/testtools/teams","hooks_url":"https://api.github.com/repos/jonathanj/testtools/hooks","issue_events_url":"https://api.github.com/repos/jonathanj/testtools/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanj/testtools/events","assignees_url":"https://api.github.com/repos/jonathanj/testtools/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanj/testtools/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanj/testtools/tags","blobs_url":"https://api.github.com/repos/jonathanj/testtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanj/testtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanj/testtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanj/testtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanj/testtools/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanj/testtools/languages","stargazers_url":"https://api.github.com/repos/jonathanj/testtools/stargazers","contributors_url":"https://api.github.com/repos/jonathanj/testtools/contributors","subscribers_url":"https://api.github.com/repos/jonathanj/testtools/subscribers","subscription_url":"https://api.github.com/repos/jonathanj/testtools/subscription","commits_url":"https://api.github.com/repos/jonathanj/testtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanj/testtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanj/testtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanj/testtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonathanj/testtools/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanj/testtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanj/testtools/merges","archive_url":"https://api.github.com/repos/jonathanj/testtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanj/testtools/downloads","issues_url":"https://api.github.com/repos/jonathanj/testtools/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanj/testtools/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanj/testtools/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanj/testtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanj/testtools/labels{/name}","releases_url":"https://api.github.com/repos/jonathanj/testtools/releases{/id}","deployments_url":"https://api.github.com/repos/jonathanj/testtools/deployments","created_at":"2016-03-12T16:15:15Z","updated_at":"2016-03-12T16:15:16Z","pushed_at":"2016-03-12T21:39:16Z","git_url":"git://github.com/jonathanj/testtools.git","ssh_url":"git@github.com:jonathanj/testtools.git","clone_url":"https://github.com/jonathanj/testtools.git","svn_url":"https://github.com/jonathanj/testtools","homepage":"http://testtools.readthedocs.org/en/latest/ ","size":4978,"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":"testing-cabal:master","ref":"master","sha":"45a0a15924f6c8a74b8a7e4def8ef7430ad92f0c","user":{"login":"testing-cabal","id":2662570,"avatar_url":"https://avatars.githubusercontent.com/u/2662570?v=3","gravatar_id":"","url":"https://api.github.com/users/testing-cabal","html_url":"https://github.com/testing-cabal","followers_url":"https://api.github.com/users/testing-cabal/followers","following_url":"https://api.github.com/users/testing-cabal/following{/other_user}","gists_url":"https://api.github.com/users/testing-cabal/gists{/gist_id}","starred_url":"https://api.github.com/users/testing-cabal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testing-cabal/subscriptions","organizations_url":"https://api.github.com/users/testing-cabal/orgs","repos_url":"https://api.github.com/users/testing-cabal/repos","events_url":"https://api.github.com/users/testing-cabal/events{/privacy}","received_events_url":"https://api.github.com/users/testing-cabal/received_events","type":"Organization","site_admin":false},"repo":{"id":7804703,"name":"testtools","full_name":"testing-cabal/testtools","owner":{"login":"testing-cabal","id":2662570,"avatar_url":"https://avatars.githubusercontent.com/u/2662570?v=3","gravatar_id":"","url":"https://api.github.com/users/testing-cabal","html_url":"https://github.com/testing-cabal","followers_url":"https://api.github.com/users/testing-cabal/followers","following_url":"https://api.github.com/users/testing-cabal/following{/other_user}","gists_url":"https://api.github.com/users/testing-cabal/gists{/gist_id}","starred_url":"https://api.github.com/users/testing-cabal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testing-cabal/subscriptions","organizations_url":"https://api.github.com/users/testing-cabal/orgs","repos_url":"https://api.github.com/users/testing-cabal/repos","events_url":"https://api.github.com/users/testing-cabal/events{/privacy}","received_events_url":"https://api.github.com/users/testing-cabal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testing-cabal/testtools","description":"Testtools - tasteful testing for python","fork":false,"url":"https://api.github.com/repos/testing-cabal/testtools","forks_url":"https://api.github.com/repos/testing-cabal/testtools/forks","keys_url":"https://api.github.com/repos/testing-cabal/testtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testing-cabal/testtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testing-cabal/testtools/teams","hooks_url":"https://api.github.com/repos/testing-cabal/testtools/hooks","issue_events_url":"https://api.github.com/repos/testing-cabal/testtools/issues/events{/number}","events_url":"https://api.github.com/repos/testing-cabal/testtools/events","assignees_url":"https://api.github.com/repos/testing-cabal/testtools/assignees{/user}","branches_url":"https://api.github.com/repos/testing-cabal/testtools/branches{/branch}","tags_url":"https://api.github.com/repos/testing-cabal/testtools/tags","blobs_url":"https://api.github.com/repos/testing-cabal/testtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testing-cabal/testtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testing-cabal/testtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/testing-cabal/testtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testing-cabal/testtools/statuses/{sha}","languages_url":"https://api.github.com/repos/testing-cabal/testtools/languages","stargazers_url":"https://api.github.com/repos/testing-cabal/testtools/stargazers","contributors_url":"https://api.github.com/repos/testing-cabal/testtools/contributors","subscribers_url":"https://api.github.com/repos/testing-cabal/testtools/subscribers","subscription_url":"https://api.github.com/repos/testing-cabal/testtools/subscription","commits_url":"https://api.github.com/repos/testing-cabal/testtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/testing-cabal/testtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/testing-cabal/testtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/testing-cabal/testtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/testing-cabal/testtools/contents/{+path}","compare_url":"https://api.github.com/repos/testing-cabal/testtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testing-cabal/testtools/merges","archive_url":"https://api.github.com/repos/testing-cabal/testtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testing-cabal/testtools/downloads","issues_url":"https://api.github.com/repos/testing-cabal/testtools/issues{/number}","pulls_url":"https://api.github.com/repos/testing-cabal/testtools/pulls{/number}","milestones_url":"https://api.github.com/repos/testing-cabal/testtools/milestones{/number}","notifications_url":"https://api.github.com/repos/testing-cabal/testtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testing-cabal/testtools/labels{/name}","releases_url":"https://api.github.com/repos/testing-cabal/testtools/releases{/id}","deployments_url":"https://api.github.com/repos/testing-cabal/testtools/deployments","created_at":"2013-01-24T18:59:21Z","updated_at":"2016-02-15T19:05:07Z","pushed_at":"2016-03-12T21:39:45Z","git_url":"git://github.com/testing-cabal/testtools.git","ssh_url":"git@github.com:testing-cabal/testtools.git","clone_url":"https://github.com/testing-cabal/testtools.git","svn_url":"https://github.com/testing-cabal/testtools","homepage":"http://testtools.readthedocs.org/en/latest/ ","size":5254,"stargazers_count":37,"watchers_count":37,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":48,"mirror_url":null,"open_issues_count":23,"forks":48,"open_issues":23,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/testing-cabal/testtools/pulls/224"},"html":{"href":"https://github.com/testing-cabal/testtools/pull/224"},"issue":{"href":"https://api.github.com/repos/testing-cabal/testtools/issues/224"},"comments":{"href":"https://api.github.com/repos/testing-cabal/testtools/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/testing-cabal/testtools/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/testing-cabal/testtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/testing-cabal/testtools/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/testing-cabal/testtools/statuses/edfcacf6d7172e54ccf275330c5ab7b6164bf062"}}}}