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

Method test_openid_get_user

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

Source from the content-addressed store, hash-verified

344 self.assertTrue("/openid/server/authenticate?" in response.headers["Location"])
345
346 def test_openid_get_user(self):
347 response = self.fetch(
348 "/openid/client/login?openid.mode=blah"
349 "&openid.ns.ax=http://openid.net/srv/ax/1.0"
350 "&openid.ax.type.email=http://axschema.org/contact/email"
351 "&openid.ax.value.email=foo@example.com"
352 )
353 response.rethrow()
354 parsed = json_decode(response.body)
355 self.assertEqual(parsed["email"], "foo@example.com")
356
357 def test_oauth10_redirect(self):
358 response = self.fetch("/oauth10/client/login", follow_redirects=False)

Callers

nothing calls this directly

Calls 3

json_decodeFunction · 0.90
rethrowMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected