Added bench init , start and python tests to curl the site

This commit is contained in:
vishalseshagiri
2017-08-02 16:46:50 +05:30
parent 06ff744f7b
commit 3f148638fb
3 changed files with 37 additions and 20 deletions

10
test.py Normal file
View File

@@ -0,0 +1,10 @@
import subprocess,requests,time
time.wait(45)
try:
r = requests.get("site1.local:8000")
assert '<title> Login </title>' in r.content, "Login page failed to load"
except Exception as e:
traceback.print_exc(e)
sys.exit(3)