Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:8e80217e59
[formerly3360eb6c5f
] Former-commit-id:377dcd10b9
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']
|