MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_oauth10a_get_user

Method test_oauth10a_get_user

python/python3/tornado/test/auth_test.py:414–422  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

412 self.assertEqual(response.code, 500)
413
414 def test_oauth10a_get_user(self):
415 response = self.fetch(
416 "/oauth10a/client/login?oauth_token=zxcv",
417 headers={"Cookie": "_oauth_request_token=enhjdg==|MTIzNA=="},
418 )
419 response.rethrow()
420 parsed = json_decode(response.body)
421 self.assertEqual(parsed["email"], "foo@example.com")
422 self.assertEqual(parsed["access_token"], dict(key="uiop", secret="5678"))
423
424 def test_oauth10a_request_parameters(self):
425 response = self.fetch("/oauth10a/client/request_params")

Callers

nothing calls this directly

Calls 3

json_decodeFunction · 0.90
rethrowMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected