def test_message_get_delete(self): new = Message('abc') new.save('123') new = Message('abc') eq_(new.get(delete=False), '123') eq_(new.get(delete=True), '123') eq_(new.get(), None)
def test_message_expires(self): new = Message('abc') new.save('123') cache.clear() new = Message('abc') eq_(new.get(), None)
def test_message_save(self): new = Message('abc') new.save('123') new = Message('abc') eq_(new.get(), '123')