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