Skip to content

Commit

Permalink
Se sacan los requests de match.
Browse files Browse the repository at this point in the history
  • Loading branch information
elianadiaz committed Jun 2, 2016
1 parent 8ddc87c commit 526e325
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions requestHappy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
print response.json()
token= response.json()["token"]
print token
print "Debe fallar"
url='http://localhost:8080/match/'
response = requests.post(url,headers=auth, data=dataUserPut_json)
print response
#data_json=response
auth={}
auth["Authorization"]=token
Expand All @@ -98,28 +94,11 @@
url='http://localhost:8080/token/'
response = requests.delete(url,headers=auth)
print response
print "Debe fallar"
url='http://localhost:8080/match/'
response = requests.post(url,headers=auth, data=dataUserPut_json)
print response
print
url='http://localhost:8080/token/'
response = requests.post(url,data=token_json)
auth["Authorization"]= response.json()["token"]
print "Exito"
url='http://localhost:8080/match/'
response = requests.post(url,headers=auth, data=dataUserPut_json)
print response

print "\n MATCH"
url='http://localhost:8080/match/'
print url
print "post"
response = requests.post(url,headers=auth, data=dataUserPut_json)
print response
print "get"
response = requests.get(url, headers=auth,data=dataUserPut_json)
print response
print "\n CHAT"
url='http://localhost:8080/chat/'
print url
Expand Down

0 comments on commit 526e325

Please sign in to comment.