Commit 84641b50 authored by Sean Bleier's avatar Sean Bleier

Tidy up test.

parent e7f49157
......@@ -474,8 +474,7 @@ class BaseRedisTestCase(SetupMixin):
def test_persist_expire_to_persist(self):
self.cache.set('a', 'a', timeout=10)
self.cache.persist('a')
ttl = self.cache.ttl('a')
self.assertEqual(ttl, None)
self.assertIsNone(self.cache.ttl('a'))
def test_expire_no_expiry_to_expire(self):
self.cache.set('a', 'a', timeout=None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment