Exemple #1
0
 def test_is_expired_valid(self, foo):
   expected = False
   actual = _is_expired('', DEFAULT_EXPIRY)
   self.assertEqual(actual, expected)
Exemple #2
0
 def test_is_expired_no_expiry(self):
   expected = False
   actual = _is_expired('', None)
   self.assertEqual(actual, expected)
Exemple #3
0
 def test_is_expired_expired(self, foo):
   expected = True
   actual = _is_expired('', SHORT_EXPIRY)
   self.assertEqual(actual, expected)