示例#1
0
 def test_to_dict_refresh_tkn(self):
     ts = TokenStore()
     ts.refresh_token = 'a'
     dic = ts.to_dict()
     self.assertEqual('a', dic.get(_REFRESH_TOKEN))
     self.assertIn(_KEY_TIMESTAMP, dic.keys())
示例#2
0
 def test_set_refresh_token_updates_ts(self):
     ts = TokenStore()
     ts.refresh_token = 'a'
     self.assertIsNotNone(ts._timestamp)