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

Tidy up test.

parent e7f49157
...@@ -474,8 +474,7 @@ class BaseRedisTestCase(SetupMixin): ...@@ -474,8 +474,7 @@ class BaseRedisTestCase(SetupMixin):
def test_persist_expire_to_persist(self): def test_persist_expire_to_persist(self):
self.cache.set('a', 'a', timeout=10) self.cache.set('a', 'a', timeout=10)
self.cache.persist('a') self.cache.persist('a')
ttl = self.cache.ttl('a') self.assertIsNone(self.cache.ttl('a'))
self.assertEqual(ttl, None)
def test_expire_no_expiry_to_expire(self): def test_expire_no_expiry_to_expire(self):
self.cache.set('a', 'a', timeout=None) 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