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