summaryrefslogtreecommitdiff
path: root/plac/doc/test_ishelve_more.py
blob: 234ce0abdb5573739e45fd011aecd70404d5a90b (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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')