Lines Matching refs:utcnow
266 def test_access_token(self, utcnow): argument
270 utcnow.return_value = NOW
320 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
337 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
359 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
398 def test_get_access_token_no_claims(self, time, utcnow): argument
399 utcnow.return_value = T1_DATE
413 utcnow.return_value = T2_DATE
423 utcnow.return_value = T3_DATE
436 def test_get_access_token_additional_claims(self, time, utcnow): argument
437 utcnow.return_value = T1_DATE
473 def test_authorize_success(self, time, utcnow): argument
474 utcnow.return_value = T1_DATE
499 utcnow.return_value = T2_DATE
504 def test_authorize_no_aud(self, time, utcnow): argument
505 utcnow.return_value = T1_DATE
537 def test_authorize_stale_token(self, utcnow): argument
538 utcnow.return_value = T1_DATE
547 utcnow.return_value = T3_DATE
554 def test_authorize_401(self, utcnow): argument
555 utcnow.return_value = T1_DATE
565 utcnow.return_value = T2_DATE
572 def test_refresh(self, utcnow): argument
573 utcnow.return_value = T1_DATE
576 utcnow.return_value = T2_DATE