{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/comments/82249477","pull_request_review_id":3165610,"id":82249477,"diff_hunk":"@@ -0,0 +1,89 @@\n+# Copyright 2016 Google Inc.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+import flask\n+import pytest\n+from pytest_localserver.http import WSGIServer\n+from six.moves import http_client\n+\n+from google.auth import exceptions\n+\n+# .invalid will never resolve, see https://tools.ietf.org/html/rfc2606\n+NXDOMAIN = 'test.invalid'\n+\n+\n+class RequestResponseTests(object):\n+\n+    @pytest.fixture\n+    def server(self):\n+        \"\"\"Provides a test HTTP server that is automatically created before\n+        a test and destroyed at the end. The server is serving a test\n+        application that can be used to verify requests.\"\"\"","path":"tests/transport/compliance.py","position":32,"original_position":32,"commit_id":"d77654e4be88e81f5743d51dee71f96393fa46e5","original_commit_id":"d77654e4be88e81f5743d51dee71f96393fa46e5","user":{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false},"body":"Regarding my dogma. This could easily be expressed as follows\r\n\r\n```python\r\n        \"\"\"Provides a test HTTP server.\r\n\r\n        The test server is automatically created before\r\n        a test and destroyed at the end. The server is serving a test\r\n        application that can be used to verify requests.\r\n        \"\"\"\r\n```","created_at":"2016-10-06T18:10:36Z","updated_at":"2016-10-06T18:17:39Z","html_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/10#discussion_r82249477","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/comments/82249477"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/10#discussion_r82249477"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10","id":88308357,"html_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/10","diff_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/10.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/10.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/10","number":10,"state":"open","locked":false,"title":"Add http.client transport","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":"2016-10-06T17:44:06Z","updated_at":"2016-10-06T18:17:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f917137b910da6d4e950a91e78a6d45e7690bb55","assignee":{"login":"bjwatson","id":471755,"avatar_url":"https://avatars.githubusercontent.com/u/471755?v=3","gravatar_id":"","url":"https://api.github.com/users/bjwatson","html_url":"https://github.com/bjwatson","followers_url":"https://api.github.com/users/bjwatson/followers","following_url":"https://api.github.com/users/bjwatson/following{/other_user}","gists_url":"https://api.github.com/users/bjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/bjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjwatson/subscriptions","organizations_url":"https://api.github.com/users/bjwatson/orgs","repos_url":"https://api.github.com/users/bjwatson/repos","events_url":"https://api.github.com/users/bjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/bjwatson/received_events","type":"User","site_admin":false},"assignees":[{"login":"bjwatson","id":471755,"avatar_url":"https://avatars.githubusercontent.com/u/471755?v=3","gravatar_id":"","url":"https://api.github.com/users/bjwatson","html_url":"https://github.com/bjwatson","followers_url":"https://api.github.com/users/bjwatson/followers","following_url":"https://api.github.com/users/bjwatson/following{/other_user}","gists_url":"https://api.github.com/users/bjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/bjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjwatson/subscriptions","organizations_url":"https://api.github.com/users/bjwatson/orgs","repos_url":"https://api.github.com/users/bjwatson/repos","events_url":"https://api.github.com/users/bjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/bjwatson/received_events","type":"User","site_admin":false},{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/10/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/statuses/d77654e4be88e81f5743d51dee71f96393fa46e5","head":{"label":"GoogleCloudPlatform:http-client-transport","ref":"http-client-transport","sha":"d77654e4be88e81f5743d51dee71f96393fa46e5","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":69199387,"name":"google-auth-library-python","full_name":"GoogleCloudPlatform/google-auth-library-python","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/google-auth-library-python","description":"Google Auth Python Library (Experimental)","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/deployments","created_at":"2016-09-26T00:38:59Z","updated_at":"2016-10-04T17:20:37Z","pushed_at":"2016-10-06T18:06:17Z","git_url":"git://github.com/GoogleCloudPlatform/google-auth-library-python.git","ssh_url":"git@github.com:GoogleCloudPlatform/google-auth-library-python.git","clone_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python.git","svn_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"5d028eccdb98b0e728f55034dc5631fb6766741e","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":69199387,"name":"google-auth-library-python","full_name":"GoogleCloudPlatform/google-auth-library-python","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/google-auth-library-python","description":"Google Auth Python Library (Experimental)","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/deployments","created_at":"2016-09-26T00:38:59Z","updated_at":"2016-10-04T17:20:37Z","pushed_at":"2016-10-06T18:06:17Z","git_url":"git://github.com/GoogleCloudPlatform/google-auth-library-python.git","ssh_url":"git@github.com:GoogleCloudPlatform/google-auth-library-python.git","clone_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python.git","svn_url":"https://github.com/GoogleCloudPlatform/google-auth-library-python","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/10"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/10"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-auth-library-python/statuses/d77654e4be88e81f5743d51dee71f96393fa46e5"}}}}
{"actor":{"display_login":"dhermes"}}