13 lines
314 B
Python
Executable file
13 lines
314 B
Python
Executable file
from werkzeug.contrib.cache import SimpleCache
|
|
|
|
|
|
def test_simplecache_get_dict():
|
|
"""SimpleCache.get_dict bug"""
|
|
cache = SimpleCache()
|
|
cache.set('a', 'a')
|
|
cache.set('b', 'b')
|
|
d = cache.get_dict('a', 'b')
|
|
assert 'a' in d
|
|
assert 'a' == d['a']
|
|
assert 'b' in d
|
|
assert 'b' == d['b']
|