(self)
| 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) |
nothing calls this directly
no test coverage detected