Пример #1
0
 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')
Пример #2
0
 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')
Пример #3
0
 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')
Пример #4
0
 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')