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