| 12 | |
| 13 | class TwythonEndpointsTestCase(unittest.TestCase): |
| 14 | def setUp(self): |
| 15 | |
| 16 | client_args = { |
| 17 | 'headers': { |
| 18 | 'User-Agent': '__twython__ Test' |
| 19 | }, |
| 20 | 'allow_redirects': False |
| 21 | } |
| 22 | |
| 23 | # This is so we can hit coverage that Twython sets |
| 24 | # User-Agent for us if none is supplied |
| 25 | oauth2_client_args = { |
| 26 | 'headers': {} |
| 27 | } |
| 28 | |
| 29 | self.api = Twython(app_key, app_secret, |
| 30 | oauth_token, oauth_token_secret, |
| 31 | client_args=client_args) |
| 32 | |
| 33 | self.oauth2_api = Twython(app_key, access_token=access_token, |
| 34 | client_args=oauth2_client_args) |
| 35 | |
| 36 | # Timelines |
| 37 | @unittest.skip('skipping non-updated test') |