3677de12052f2b8533a5122574a403d3834cf3b1,descarteslabs/tests/test_auth.py,TestAuth,test_get_token,#TestAuth#,22
Before Change
self.assertIsNotNone(auth.token)
// validate the jwt
url = auth.domain + "/users/self"
r = requests.get(url)
self.assertEqual(200, r.status_code)
if __name__ == "__main__":
After Change
self.assertIsNotNone(auth.token)
// validate the jwt
url = "https://descarteslabs.auth0.com" + "/tokeninfo"
params = {"id_token": auth.token}
headers = {"content-type": "application/json"}
r = requests.post(url, data=json.dumps(params), headers=headers)
self.assertEqual(200, r.status_code)
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: descarteslabs/descarteslabs-python
Commit Name: 3677de12052f2b8533a5122574a403d3834cf3b1
Time: 2017-07-18
Author: justin.poehnelt@gmail.com
File Name: descarteslabs/tests/test_auth.py
Class Name: TestAuth
Method Name: test_get_token
Project Name: CyberReboot/poseidon
Commit Name: ea536bf2160a1428c7bad728db0f30d5de4ff812
Time: 2016-08-30
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs
Project Name: CyberReboot/poseidon
Commit Name: ea536bf2160a1428c7bad728db0f30d5de4ff812
Time: 2016-08-30
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_update_one_doc
Project Name: CyberReboot/poseidon
Commit Name: ea536bf2160a1428c7bad728db0f30d5de4ff812
Time: 2016-08-30
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_one_doc