Coverage, tests, secure ACCESS_TOKEN, update HISTORY
This commit is contained in:
parent
9813a4c8f5
commit
478c139af2
6 changed files with 50 additions and 4 deletions
|
|
@ -43,3 +43,8 @@ class TwythonAuthTestCase(unittest.TestCase):
|
|||
def test_obtain_access_token(self):
|
||||
"""Test obtaining an Application Only OAuth 2 access token succeeds"""
|
||||
self.oauth2_api.obtain_access_token()
|
||||
|
||||
def test_obtain_access_token_raises_error_when_oauth1(self):
|
||||
"""Test when API is set for OAuth 1, obtain_access_token raises a
|
||||
TwythonError"""
|
||||
self.assertRaises(TwythonError, self.api.obtain_access_token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue