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

Method test_twitter_get_user

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

Source from the content-addressed store, hash-verified

493 )
494
495 def test_twitter_get_user(self):
496 response = self.fetch(
497 "/twitter/client/login?oauth_token=zxcv",
498 headers={"Cookie": "_oauth_request_token=enhjdg==|MTIzNA=="},
499 )
500 response.rethrow()
501 parsed = json_decode(response.body)
502 self.assertEqual(
503 parsed,
504 {
505 u"access_token": {
506 u"key": u"hjkl",
507 u"screen_name": u"foo",
508 u"secret": u"vbnm",
509 },
510 u"name": u"Foo",
511 u"screen_name": u"foo",
512 u"username": u"foo",
513 },
514 )
515
516 def test_twitter_show_user(self):
517 response = self.fetch("/twitter/client/show_user?name=somebody")

Callers

nothing calls this directly

Calls 3

json_decodeFunction · 0.90
rethrowMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected