Skip to content

Instantly share code, notes, and snippets.

@nickstenning
Created August 25, 2016 15:14
Show Gist options
  • Save nickstenning/1c66d409f2ea19fd76bf48d43318852d to your computer and use it in GitHub Desktop.
Save nickstenning/1c66d409f2ea19fd76bf48d43318852d to your computer and use it in GitHub Desktop.
from __future__ import print_function
import sys
import requests
requests.post('http://localhost:5000/account/_debug/counter?reset')
print('.', end='')
sys.stdout.flush()
n = 1
for _ in range(10000):
resp = requests.post('http://localhost:5000/account/_debug/counter')
resp.raise_for_status()
print('.', end='')
sys.stdout.flush()
n += 1
expected = "count={}".format(n)
if resp.content != expected:
print("err {} != {}".format(resp.content, expected))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment