def test_is_expired_valid(self, foo): expected = False actual = _is_expired('', DEFAULT_EXPIRY) self.assertEqual(actual, expected)
def test_is_expired_no_expiry(self): expected = False actual = _is_expired('', None) self.assertEqual(actual, expected)
def test_is_expired_expired(self, foo): expected = True actual = _is_expired('', SHORT_EXPIRY) self.assertEqual(actual, expected)