Lines Matching refs:token_expiry
290 self.assertEqual(None, credentials.token_expiry)
880 token_expiry = datetime.datetime.utcnow()
884 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
980 instance.token_expiry = None
981 self.credentials.token_expiry = None
1002 token_expiry = str(datetime.datetime.utcnow())
1008 token_expiry, token_uri, user_agent, revoke_uri=revoke_uri)
1032 token_expiry = str(datetime.datetime.utcnow())
1038 token_expiry, token_uri, user_agent, revoke_uri=revoke_uri)
1063 self.assertIsNone(credentials.token_expiry)
1070 credentials.token_expiry = datetime.datetime.utcnow()
1071 now = credentials.token_expiry + datetime.timedelta(seconds=1)
1072 self.assertLess(credentials.token_expiry, now)
1081 credentials.token_expiry = datetime.datetime.utcnow()
1083 now = credentials.token_expiry - datetime.timedelta(seconds=seconds)
1084 self.assertLess(now, credentials.token_expiry)
1121 credentials.token_expiry = None
1126 self.assertEqual(credentials.token_expiry, None)
1128 self.assertEqual(credentials.token_expiry, EXPIRY_TIME)
1155 credentials.token_expiry = NOW # Manually force expiry.
1894 self.assertNotEqual(None, credentials.token_expiry)
1923 self.assertIsNotNone(credentials.token_expiry)
1950 self.assertNotEqual(None, credentials.token_expiry)
1989 self.assertNotEqual(None, credentials.token_expiry)
2000 self.assertNotEqual(None, credentials.token_expiry)
2011 self.assertEqual(None, credentials.token_expiry)
2022 self.assertEqual(None, credentials.token_expiry)
2190 self.assertNotEqual(None, credentials.token_expiry)
2213 self.assertNotEqual(None, credentials.token_expiry)