{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-services/cornice/pulls/comments/54873041","id":54873041,"diff_hunk":"@@ -89,16 +89,26 @@ def test_accept(self):\n         response = app.get('/service3', headers={'Accept': 'audio/*'},\n                            status=406)\n         error_description = response.json['errors'][0]['description']\n-        self.assertTrue('text/json' in error_description)\n+        self.assertIn('text/json', error_description)","path":"cornice/tests/test_validation.py","position":18,"original_position":18,"commit_id":"bbf00a05bade63414ed5ac0295695f254d0c8ee5","original_commit_id":"bbf00a05bade63414ed5ac0295695f254d0c8ee5","user":{"login":"almet","id":67073,"avatar_url":"https://avatars.githubusercontent.com/u/67073?v=3","gravatar_id":"","url":"https://api.github.com/users/almet","html_url":"https://github.com/almet","followers_url":"https://api.github.com/users/almet/followers","following_url":"https://api.github.com/users/almet/following{/other_user}","gists_url":"https://api.github.com/users/almet/gists{/gist_id}","starred_url":"https://api.github.com/users/almet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almet/subscriptions","organizations_url":"https://api.github.com/users/almet/orgs","repos_url":"https://api.github.com/users/almet/repos","events_url":"https://api.github.com/users/almet/events{/privacy}","received_events_url":"https://api.github.com/users/almet/received_events","type":"User","site_admin":false},"body":"Thanks for doing this: we'll have better output in case of errors!","created_at":"2016-03-03T12:29:28Z","updated_at":"2016-03-03T12:29:28Z","html_url":"https://github.com/mozilla-services/cornice/pull/351#discussion_r54873041","pull_request_url":"https://api.github.com/repos/mozilla-services/cornice/pulls/351","_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/cornice/pulls/comments/54873041"},"html":{"href":"https://github.com/mozilla-services/cornice/pull/351#discussion_r54873041"},"pull_request":{"href":"https://api.github.com/repos/mozilla-services/cornice/pulls/351"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-services/cornice/pulls/351","id":60988326,"html_url":"https://github.com/mozilla-services/cornice/pull/351","diff_url":"https://github.com/mozilla-services/cornice/pull/351.diff","patch_url":"https://github.com/mozilla-services/cornice/pull/351.patch","issue_url":"https://api.github.com/repos/mozilla-services/cornice/issues/351","number":351,"state":"open","locked":false,"title":"Improve documentation regarding content type negotiation and media type validation","user":{"login":"amotl","id":453543,"avatar_url":"https://avatars.githubusercontent.com/u/453543?v=3","gravatar_id":"","url":"https://api.github.com/users/amotl","html_url":"https://github.com/amotl","followers_url":"https://api.github.com/users/amotl/followers","following_url":"https://api.github.com/users/amotl/following{/other_user}","gists_url":"https://api.github.com/users/amotl/gists{/gist_id}","starred_url":"https://api.github.com/users/amotl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amotl/subscriptions","organizations_url":"https://api.github.com/users/amotl/orgs","repos_url":"https://api.github.com/users/amotl/repos","events_url":"https://api.github.com/users/amotl/events{/privacy}","received_events_url":"https://api.github.com/users/amotl/received_events","type":"User","site_admin":false},"body":"Improve documentation of content type negotiation and media type validation. See also #91, #343, #350.\r\n","created_at":"2016-02-28T11:31:53Z","updated_at":"2016-03-03T12:29:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b440099bdc4f1c642c9e2fabb4fba78e6b9d632","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-services/cornice/pulls/351/commits","review_comments_url":"https://api.github.com/repos/mozilla-services/cornice/pulls/351/comments","review_comment_url":"https://api.github.com/repos/mozilla-services/cornice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-services/cornice/issues/351/comments","statuses_url":"https://api.github.com/repos/mozilla-services/cornice/statuses/bbf00a05bade63414ed5ac0295695f254d0c8ee5","head":{"label":"zerotired:wip/media-type-validation-docs","ref":"wip/media-type-validation-docs","sha":"bbf00a05bade63414ed5ac0295695f254d0c8ee5","user":{"login":"zerotired","id":1440061,"avatar_url":"https://avatars.githubusercontent.com/u/1440061?v=3","gravatar_id":"","url":"https://api.github.com/users/zerotired","html_url":"https://github.com/zerotired","followers_url":"https://api.github.com/users/zerotired/followers","following_url":"https://api.github.com/users/zerotired/following{/other_user}","gists_url":"https://api.github.com/users/zerotired/gists{/gist_id}","starred_url":"https://api.github.com/users/zerotired/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerotired/subscriptions","organizations_url":"https://api.github.com/users/zerotired/orgs","repos_url":"https://api.github.com/users/zerotired/repos","events_url":"https://api.github.com/users/zerotired/events{/privacy}","received_events_url":"https://api.github.com/users/zerotired/received_events","type":"Organization","site_admin":false},"repo":{"id":52629940,"name":"cornice","full_name":"zerotired/cornice","owner":{"login":"zerotired","id":1440061,"avatar_url":"https://avatars.githubusercontent.com/u/1440061?v=3","gravatar_id":"","url":"https://api.github.com/users/zerotired","html_url":"https://github.com/zerotired","followers_url":"https://api.github.com/users/zerotired/followers","following_url":"https://api.github.com/users/zerotired/following{/other_user}","gists_url":"https://api.github.com/users/zerotired/gists{/gist_id}","starred_url":"https://api.github.com/users/zerotired/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerotired/subscriptions","organizations_url":"https://api.github.com/users/zerotired/orgs","repos_url":"https://api.github.com/users/zerotired/repos","events_url":"https://api.github.com/users/zerotired/events{/privacy}","received_events_url":"https://api.github.com/users/zerotired/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zerotired/cornice","description":"restful services for pyramid","fork":true,"url":"https://api.github.com/repos/zerotired/cornice","forks_url":"https://api.github.com/repos/zerotired/cornice/forks","keys_url":"https://api.github.com/repos/zerotired/cornice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zerotired/cornice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zerotired/cornice/teams","hooks_url":"https://api.github.com/repos/zerotired/cornice/hooks","issue_events_url":"https://api.github.com/repos/zerotired/cornice/issues/events{/number}","events_url":"https://api.github.com/repos/zerotired/cornice/events","assignees_url":"https://api.github.com/repos/zerotired/cornice/assignees{/user}","branches_url":"https://api.github.com/repos/zerotired/cornice/branches{/branch}","tags_url":"https://api.github.com/repos/zerotired/cornice/tags","blobs_url":"https://api.github.com/repos/zerotired/cornice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zerotired/cornice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zerotired/cornice/git/refs{/sha}","trees_url":"https://api.github.com/repos/zerotired/cornice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zerotired/cornice/statuses/{sha}","languages_url":"https://api.github.com/repos/zerotired/cornice/languages","stargazers_url":"https://api.github.com/repos/zerotired/cornice/stargazers","contributors_url":"https://api.github.com/repos/zerotired/cornice/contributors","subscribers_url":"https://api.github.com/repos/zerotired/cornice/subscribers","subscription_url":"https://api.github.com/repos/zerotired/cornice/subscription","commits_url":"https://api.github.com/repos/zerotired/cornice/commits{/sha}","git_commits_url":"https://api.github.com/repos/zerotired/cornice/git/commits{/sha}","comments_url":"https://api.github.com/repos/zerotired/cornice/comments{/number}","issue_comment_url":"https://api.github.com/repos/zerotired/cornice/issues/comments{/number}","contents_url":"https://api.github.com/repos/zerotired/cornice/contents/{+path}","compare_url":"https://api.github.com/repos/zerotired/cornice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zerotired/cornice/merges","archive_url":"https://api.github.com/repos/zerotired/cornice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zerotired/cornice/downloads","issues_url":"https://api.github.com/repos/zerotired/cornice/issues{/number}","pulls_url":"https://api.github.com/repos/zerotired/cornice/pulls{/number}","milestones_url":"https://api.github.com/repos/zerotired/cornice/milestones{/number}","notifications_url":"https://api.github.com/repos/zerotired/cornice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zerotired/cornice/labels{/name}","releases_url":"https://api.github.com/repos/zerotired/cornice/releases{/id}","deployments_url":"https://api.github.com/repos/zerotired/cornice/deployments","created_at":"2016-02-26T20:12:27Z","updated_at":"2016-02-26T20:12:27Z","pushed_at":"2016-03-03T02:18:45Z","git_url":"git://github.com/zerotired/cornice.git","ssh_url":"git@github.com:zerotired/cornice.git","clone_url":"https://github.com/zerotired/cornice.git","svn_url":"https://github.com/zerotired/cornice","homepage":"http://cornice.rtfd.org","size":1191,"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":"mozilla-services:master","ref":"master","sha":"3975c494e7de40c52d3f5c06cdc2bdff00c6a3d8","user":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"repo":{"id":2562442,"name":"cornice","full_name":"mozilla-services/cornice","owner":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-services/cornice","description":"restful services for pyramid","fork":false,"url":"https://api.github.com/repos/mozilla-services/cornice","forks_url":"https://api.github.com/repos/mozilla-services/cornice/forks","keys_url":"https://api.github.com/repos/mozilla-services/cornice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-services/cornice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-services/cornice/teams","hooks_url":"https://api.github.com/repos/mozilla-services/cornice/hooks","issue_events_url":"https://api.github.com/repos/mozilla-services/cornice/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-services/cornice/events","assignees_url":"https://api.github.com/repos/mozilla-services/cornice/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-services/cornice/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-services/cornice/tags","blobs_url":"https://api.github.com/repos/mozilla-services/cornice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-services/cornice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-services/cornice/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-services/cornice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-services/cornice/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-services/cornice/languages","stargazers_url":"https://api.github.com/repos/mozilla-services/cornice/stargazers","contributors_url":"https://api.github.com/repos/mozilla-services/cornice/contributors","subscribers_url":"https://api.github.com/repos/mozilla-services/cornice/subscribers","subscription_url":"https://api.github.com/repos/mozilla-services/cornice/subscription","commits_url":"https://api.github.com/repos/mozilla-services/cornice/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-services/cornice/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-services/cornice/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-services/cornice/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-services/cornice/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-services/cornice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-services/cornice/merges","archive_url":"https://api.github.com/repos/mozilla-services/cornice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-services/cornice/downloads","issues_url":"https://api.github.com/repos/mozilla-services/cornice/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-services/cornice/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-services/cornice/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-services/cornice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-services/cornice/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-services/cornice/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-services/cornice/deployments","created_at":"2011-10-12T13:17:51Z","updated_at":"2016-03-02T07:45:56Z","pushed_at":"2016-03-03T10:10:56Z","git_url":"git://github.com/mozilla-services/cornice.git","ssh_url":"git@github.com:mozilla-services/cornice.git","clone_url":"https://github.com/mozilla-services/cornice.git","svn_url":"https://github.com/mozilla-services/cornice","homepage":"http://cornice.rtfd.org","size":1460,"stargazers_count":263,"watchers_count":263,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":66,"forks":123,"open_issues":66,"watchers":263,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/cornice/pulls/351"},"html":{"href":"https://github.com/mozilla-services/cornice/pull/351"},"issue":{"href":"https://api.github.com/repos/mozilla-services/cornice/issues/351"},"comments":{"href":"https://api.github.com/repos/mozilla-services/cornice/issues/351/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-services/cornice/pulls/351/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-services/cornice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-services/cornice/pulls/351/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-services/cornice/statuses/bbf00a05bade63414ed5ac0295695f254d0c8ee5"}}}}