Skip to content

Instantly share code, notes, and snippets.

@umutcoskun
Created December 10, 2017 20:30
Show Gist options
  • Save umutcoskun/619b2a2e746095af8de64fc7776b9acc to your computer and use it in GitHub Desktop.
Save umutcoskun/619b2a2e746095af8de64fc7776b9acc to your computer and use it in GitHub Desktop.
@benchmark
def test_response_status_is_200():
from urllib import request
response = request.urlopen(
request.Request('https://httpbin.org/status/200',
method='HEAD')
)
assert response.status == 200
test_response_status_is_200()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment