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())
def test_set_refresh_token_updates_ts(self): ts = TokenStore() ts.refresh_token = 'a' self.assertIsNotNone(ts._timestamp)