Created
August 25, 2016 15:14
-
-
Save nickstenning/1c66d409f2ea19fd76bf48d43318852d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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