def test_update_token_with_secret(self): secret = 'an_access_token_secret' a = Auth('12345', 'twooter', 'an_access_token', secret) a.update_token('new_token', 'new_secret') self.assertEqual(a.access_token, 'new_token') self.assertEqual(a.access_token_secret, 'new_secret')
def test_update_token_simple(self): a = Auth('12345', 'twooter', 'an_access_token') a.update_token('new_token') self.assertEqual(a.access_token, 'new_token')