mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-17 22:20:57 +00:00
12 lines
332 B
Python
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')
|