Files
plac/doc/test_ishelve_more.py
2010-09-06 01:32:36 -04:00

12 lines
332 B
Python

# test_ishelve_more.py
from __future__ import with_statement
import plac, ishelve
def test():
with plac.Interpreter(ishelve.main) as i:
i.check('.clear', 'cleared the shelve')
i.check('a=1', 'setting a=1')
i.check('a', '1')
i.check('.delete=a', 'deleted a')
i.check('a', 'a: not found')